angel-dart-archive / graphql

moved to angel-dart/angel/packages/graphql

Home Page:https://github.com/angel-dart/angel/tree/master/packages/graphql

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Running server with sdl schema

venkatd opened this issue · comments

*This issue was automatically moved to: angel-dart/angel#203.

The parser doesn't parse the SDL just yet, but if you watch this PR, you'll know when the next version comes out (this is an intended feature):
#27

It won't look exactly the same, but you'll be able to use graphql_parser to parse type definitions from text. One key difference here, though, is that in angel_graphql, the resolvers are coupled with the schema, instead of separating them (turns out to be less error-prone).

@thosakwe could you explain what you mean by "the resolvers are coupled with the schema, instead of separating them"?

We are interested in moving to a single SDL schema shared by all of our codebases. Our Elixir backend will make use of this SDL schema in addition to some mobile clients. Some of our flutter clients will resolve some queries from a local cache while sending others directly to our backend. We will also make use of some code-generation tools off this SDL schema.