Comments (6)
@Sundea thank you for reporting this, but this is not a bug or at least I wouldn't consider it.
The thing is that the generating works out of the JSON dump of the schema, but not yet out of the GraphQL DSL schema. Is this a blocker for you? I think it's not completely trivial to parse the schema DSL into the format that the generator expects, but I'd happily help you give it a stab 🙂
from swift-graphql.
Most GraphQL code generators work with SDL, so it's sort of expected.
But anyway, thank you for the explanation.
And for the library itself, too! 🤎
from swift-graphql.
I'd double that I also expected from Codegen to support SDL schema as an input, but I see that it's not trivial, so in the meantime I use this online SDL > JSON converter https://transform.tools/graphql-to-introspection-json , the only thing missing in it's output is that you have to nest it in the "data" key.
BTW, @maticzav , would be nice if the integrations tests of the codegen used the schema from the file instead of using localhost server (which I haven't figured out how to run)
Here is the converted schema file for that:
schema.json.zip
from swift-graphql.
BTW, @maticzav , would be nice if the integrations tests of the codegen used the schema from the file instead of using localhost server (which I haven't figured out how to run) Here is the converted schema file for that: schema.json.zip
I echo that.
from swift-graphql.
BTW, @maticzav , would be nice if the integrations tests of the codegen used the schema from the file instead of using localhost server (which I haven't figured out how to run) Here is the converted schema file for that: schema.json.zip
I echo that.
💯
I'll make a new Issue to keep track of this 👍
from swift-graphql.
After further discussion @maticzav and I have decided that this is fairly low priority given we're making a library for App users which will 99% of the time already have access to a GraphQL schema and as such can use introspection.
That being said, we have substantial plans in v6 to reduce code-generation times to seconds in almost all cases, so this may be less of an issue in the coming days.
We will re-review if and when further performance enhancements need to be met.
from swift-graphql.
Related Issues (20)
- GraphQLWebSocket' does not conform to protocol 'WebSocketDelegate' HOT 1
- Remove dependency on starscream in favor of URLSession HOT 1
- Add support for AWS AppSync HOT 7
- Remove dependency on starscream in favor of URLSession HOT 13
- Does Query Builder support multi-operation queries? HOT 2
- Add suport for Linux and swift-server HOT 1
- Update package to remove CLI as dep for client HOT 7
- Massive amounts of warnings due to type parameters being shadowed (will be errors in Swift 6) HOT 2
- GraphQLSupport: Schema support HOT 1
- There are no changes listed for releases since 5.0.9 HOT 3
- GraphQL: Mock request support for testing HOT 2
- Project Roadmap HOT 3
- Caching HOT 2
- Race condition with `active` dictionary when using async/await (w/ proposed fix) HOT 2
- Generic parameter 'T'/'TypeLock' could not be inferred HOT 8
- ErrorExchange doesnt seem to be called HOT 5
- using args causes error in response HOT 2
- Optional lists? optional().list.optional()
- Category Tree Structure upto 2 levels
- How to debug codegen errors?
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 swift-graphql.