GithubHelp home page GithubHelp logo

GraphQL: SDL Support about swift-graphql HOT 6 CLOSED

maticzav avatar maticzav commented on June 15, 2024
GraphQL: SDL Support

from swift-graphql.

Comments (6)

maticzav avatar maticzav commented on June 15, 2024

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

vladimirlogachev avatar vladimirlogachev commented on June 15, 2024

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.

Fedos avatar Fedos commented on June 15, 2024

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.

pokryfka avatar pokryfka commented on June 15, 2024

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.

shaps80 avatar shaps80 commented on June 15, 2024

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.

shaps80 avatar shaps80 commented on June 15, 2024

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)

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.