Comments (7)
I've implemented a feature to support multiple schemas. Read more here.
from graphql_codegen.
@dioseltorre, it should already be released in the latest beta 😄
from graphql_codegen.
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.
@budde377 Great job! Thanks for the quick fix. I think that is what I'm looking for.
from graphql_codegen.
@budde377 When do you plan to release this?
from graphql_codegen.
@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.
@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)
- graphql_codegen is incompatible with analyzer 6+ HOT 2
- Strange generation of nullable and non-nullable lists HOT 8
- code_gen takes about 4 minutes to generate with even just small change in one query HOT 5
- Problems with hasura relay api HOT 5
- Fragment doesnt seem to work HOT 3
- question: Custom type implementation HOT 3
- Codegen ignores certain Types HOT 9
- Trouble Getting Started HOT 2
- 0.13.8 breaking change HOT 2
- [Feature Request] Add support for multiple module projects HOT 13
- Add `id` in the build step like with `__typename` HOT 2
- `Invalid GraphQL: Failed to find type for field` for extended query and same name nesting fields HOT 4
- Replace `when` and `maybeWhen` with pattern matching in Dart 3 HOT 5
- [Suggestion] Generate variable names based off of aliases HOT 2
- Omit fields from a query HOT 5
- Duplicate generated classes HOT 3
- required fields with default value being generated to a nullable field HOT 10
- Add Back `includeIfNullOnInput` build options HOT 8
- Wrong usage of Fragment passed code generation process HOT 2
- [bug] The dissimilarity of fromJSON with data when using fragments over union types HOT 2
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 graphql_codegen.