Giter VIP home page Giter VIP logo

Comments (13)

cocacrave avatar cocacrave commented on August 17, 2024 2

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.

yuth avatar yuth commented on August 17, 2024 1

@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.

et304383 avatar et304383 commented on August 17, 2024 1

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.

patrykkarny avatar patrykkarny commented on August 17, 2024 1

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.

yuth avatar yuth commented on August 17, 2024

@michaelcuneo could you please clarify the following

  1. How did you change src/graphql/**/*.js to app/graphql/**/*.js
  2. Did you run amplify codegen once again after updating the location?

from amplify-codegen.

michaelcuneo avatar michaelcuneo commented on August 17, 2024

I changed it during initial creation of the API

from amplify-codegen.

michaelcuneo avatar michaelcuneo commented on August 17, 2024

Thanks for the assistance.

from amplify-codegen.

dabit3 avatar dabit3 commented on August 17, 2024

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.

pr1ntr avatar pr1ntr commented on August 17, 2024

This is def a problem. would be nice to fix

from amplify-codegen.

khusmann avatar khusmann commented on August 17, 2024

@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.

khusmann avatar khusmann commented on August 17, 2024

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.

phani-srikar avatar phani-srikar commented on August 17, 2024

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.

michaelcuneo avatar michaelcuneo commented on August 17, 2024

@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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.