-
Notifications
You must be signed in to change notification settings - Fork 67
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Schema File #19
Comments
Would be interested in something like this as well. Personally, I think that a good flow would be to parse a What I've seen from libs that map GraphQL to static langs like Swift and Go that have granular types (like a
Ultimately, it would obviously be the generated Swift code itself that is consumed by something like a server and not the What I am talking about would be a CLI and may be a separate project. 🤔🤷♂️ |
This could be quite some work - but I've created a graphql file parser To use this - you need to get head around antlr / lexars / parsers. (this is something I'm yet to master - although with enough perserverance this is definitely the right path.) Fortunately - someone's already done some hard yards here. I may take another look at this if there's interest. UPDATE |
Technically it is not possible to scan a schema.graphql file and use reflections to access necessary resolvers, types, etc. yet. Swift doesn't allow this in it's current implementation. |
Hey,
It would be great to have the ability to provide a schema file to the server and start it with the file content.
Or is this already possible just not listed in the readme?
Thanks
Alex
The text was updated successfully, but these errors were encountered: