Comments (13)
I updated .graphqlconfig.yml
file with new schemaPath
and included
paths with new path and it seems mutations.js
, queries.js
, and subscriptions.js
gets pushed to the new path defined in config but the schema.json
appears in the default /src/graphql
. After pushing, the .graphqlconfig.yml
gets rewritten with the old(default) schemaPath: src/graphql/schema.json
I'm using @aws-amplify/[email protected]
on MacOS.
from amplify-codegen.
@michaelcuneo we have the location hard coded when you add/push a new AppSync API. I am going to pick up this a couple of weeks, but you could change the location where the statements gets stored by changing docsFilePath
in <project-root>/.graphqlconfig.yml
from amplify-codegen.
VERY annoying. amp push keeps resetting the schemaPath back to src/graphql/schema.json
docsFilePath is already set to the alternative directory. Amplify push still resets schemaPath.
from amplify-codegen.
I have the same issue amplify push
overwriting the path to schema.json
and setting back to src/graphql/schema.json
, is it by design?
from amplify-codegen.
@michaelcuneo could you please clarify the following
- How did you change
src/graphql/**/*.js
toapp/graphql/**/*.js
- Did you run
amplify codegen
once again after updating the location?
from amplify-codegen.
I changed it during initial creation of the API
from amplify-codegen.
Thanks for the assistance.
from amplify-codegen.
I've seen this happen quite a bit now & is kind of misleading. Regardless of the file path given when the API is created or updated, it always builds in src/
from amplify-codegen.
This is def a problem. would be nice to fix
from amplify-codegen.
@cocacrave I have the opposite problem: .graphqlconfig.yml obeys schemaPath, but no matter what i put in includes, it pushes mutations.js, queriers.js and subscriptions.js to src/graphql
I'm using amplify --version 1.6.8 on Ubuntu
from amplify-codegen.
Just saw @yuth 's comment -- docsFilePath works!
Still would like this to automatically come from the cli interface though (ideally inherit from the amplify init), rather than having to go back and edit .graphqlconfig.yml
from amplify-codegen.
Hi @michaelcuneo. Thank you for creating this issue. We plan to fix this along with #51. Closing this in favor of that.
from amplify-codegen.
@phani-srikar yeah, it wasn't a huge issue. Could still access all the graphql in it's state or move it manually. But this will work.
from amplify-codegen.
Related Issues (20)
- Codegen path to types incorrect
- Codegen and max depth HOT 3
- Custom primary key @primaryKey doesnโt work with @auth HOT 2
- GraphQL generator imports `prettier` but prettier is not declared as a dependency
- Custom Subscription types create invalid typescript HOT 3
- Missing custom type field after generating list query HOT 1
- Cannot generate code using amplify codegen after 12.4.0 HOT 6
- Settings some queries/mutations/subscriptions to null in @model directive results in more GraphQL statements/types being cut out than were set to null HOT 4
- Generated Mutation includes fields restricted by authorization rules HOT 3
- Ability to setup codegen to output to a function HOT 2
- Amplify CLI 12.10 - No queries found to generate types for HOT 6
- Missing Types HOT 2
- Amplify codegen doesn't support namespace queries/mutations HOT 3
- allow customizing generated graphql
- Allow saving patch changes to generated code HOT 2
- Incorrect __typename Generation on Custom Type HOT 1
- Angular code generation for v6 amplify HOT 5
- Cannot generate Models from GraphQL schema HOT 2
- Cannot use 'in' operator to search for 'name' in amplify codegen [UPDATE] HOT 6
- Gen 2 codegen generates wrong getters for "id" field in a model HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. ๐๐๐
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google โค๏ธ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from amplify-codegen.