Giter Club home page Giter Club logo

Comments (7)

budde377 avatar budde377 commented on August 26, 2024 1

I've implemented a feature to support multiple schemas. Read more here.

from graphql_codegen.

budde377 avatar budde377 commented on August 26, 2024 1

@dioseltorre, it should already be released in the latest beta 😄

from graphql_codegen.

budde377 avatar budde377 commented on August 26, 2024

The library requires you to fetch the schema and store it locally. It then assumes that the queries are relative to this.

There's currently no good way of specifying that some queries are relative to a schema and some to others. So no support for multiple schemas.

Do you have any thoughts on how we could solve your use case? How are you structuring your project?

from graphql_codegen.

dioseltorre avatar dioseltorre commented on August 26, 2024

@budde377 Great job! Thanks for the quick fix. I think that is what I'm looking for.

from graphql_codegen.

dioseltorre avatar dioseltorre commented on August 26, 2024

@budde377 When do you plan to release this?

from graphql_codegen.

karthik-js avatar karthik-js commented on August 26, 2024

@budde377 I have a question regarding scopes parsing the appropriate assets files. How does the library choose the schema files to parse assets appropriately? is there a way for mapping the schema to an asset to generate?

from graphql_codegen.

budde377 avatar budde377 commented on August 26, 2024

@karthik-js the library doesn't distinguish between schemas and operations. So you'll need to make sure that you've downloaded your schema and put it in the appropriate scope.

from graphql_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.