2
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 3 years have passed since last update.

Amplify で amplify mock api をやっても graphql フォルダ 以下に反映されない

Last updated at Posted at 2020-09-16

##同じ環境の上で開発したいな。
コピっちまえばいいか。はいポチっとな。

cloud9で開発環境のフォルダをコピって新しい環境でいじくりまわそうとしたら題のことでつまずいてしまったので以下駆け出しよわよわエンジニアの備忘録です。


  • .graphqlconfig.ymlを見てみよう
    PATHはあってるかな?それでも動かない?

Cloud9で隠しファイルを開くにはc9を使おう

terminal
npm install -g c9
c9 [ファイルパス]

 .graphqlconfig.ymlの変更は Amplify configure codegen で反映させておこう

  • local-env-info.jsonを見てみよう
    PATHはあってるかな?
terminal
Running GraphQL codegen
✔ Generated GraphQL operations successfully and saved at src/graphql
AppSync Mock endpoint is running at http://10.1.0.194:20002

...やった反映された!

2
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
2
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?