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
Support GraphQL Schema Language? #241
Comments
Hi @brimworks, thanks for posting. I would say yeah, definitely, to the the extent that the schema language is supported by the JS implementation. I'm not sure what that extent is, but it seems to be parsing. |
Thanks @dminkovsky for the green light. I'll be working on this and posting a PR (hopefully by the end of this week). Thanks, |
Cool, thanks Brian. Post if you have any questions. Are you familiar with Spock? |
Not to familiar with Spock, but I'm adding tests to ParserTest.groovy and it seems pretty straight forward. So far I've added to the ANTLR grammar the new syntax, then modified GraphqlAntlrToLanguage.java to generate the new "language" nodes of the AST. I can push my work in progress if you want to start the review process early. |
Cool sounds great. No, please take your time :). Thank you. |
By the way, a related issue if you have any time and interest is #126. I think it just needs tests ported-adapted from the JS implementation and any bug fixes that result. Would really bolster the tooling. |
I quickly skimmed that issue, but it was unclear to me what format the printer prints in. I'm ASSUMING it iterates over the AST and pretty prints the original input in GraphQL syntax. If that is the case, then all these new AST symbols I'm adding will have a direct impact on the pretty printer (since there will be a host of new symbols to handle). Unfortunately, the work I'm doing currently doesn't require such a pretty printer, but I do see value in it. So, I probably won't have time to contribute to that effort in the near future. |
Cool, thank you. Yeah, that code will have to be updated to accommodate the ср, 16 нояб. 2016 г. в 17:42, Brian Maher notifications@github.com:
|
This was easier than I thought... so I've posted this pull request: #243 Feedback is welcomed. |
I realized today that I forgot to add the 'schema', 'extend', and 'directive' type declarations, so the latest commit adds support for those. |
Cool, thanks very much. I'll take a look today or tomorrow. |
Thanks for reviewing this! |
This is a really nice feature :) Are there any plans when this will be released? |
I'm waiting for feedback from @dminkovsky . I've got a code generator that uses this feature that I'd like to release, but it currently depends on my fork. I was hoping to get this merged and released so I don't have to depend on a fork. Thanks, |
Hi Brian. Thank you for pinging! Always appreciate pings.
Don't worry, you won't have to depend on your fork for much longer. I am
going to review this soon, for the next (2.3.0) release, which I want to
get out in the coming few days. There's a pretty ridiculous bug fix (
#190) waiting on master.
Dmitry
…On Tue, Dec 13, 2016 at 7:56 AM, Brian Maher ***@***.***> wrote:
I'm waiting for feedback from @dminkovsky <https://github.com/dminkovsky>
. I've got a code generator that uses this feature that I'd like to
release, but it currently depends on my fork. I was hoping to get this
merged and released so I don't have to depend on a fork.
Thanks,
-Brian
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#241 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AANWZQ7Go5ag5xIrFzHZCb_aOOrNsNMxks5rHpXxgaJpZM4K0Dv1>
.
|
BTW @dminkovsky here is the code generator I wrote that uses this code: https://github.com/Distelli/graphql-apigen Thanks, |
Brian, thank so much for updating here. This looks really cool. I haven't had a chance to try this and likely won't for some time, but I am really interested in this approach and look forward to any updates as you make progress. Best, and happy 2017, |
Thanks for the encouragement! I wish the best for you and your family in 2017. The idea for this "schema first" development is partially from this JS project: https://github.com/apollostack/graphql-tools In fact my example uses the same Author/Posts example ;). |
Thanks Brian, to yours as well! I see the example uses the By the way, are you looking to make this into a product? |
The I'm not currently think of turning this into a product, but if you have ideas toward that end, I would be interested :). Thanks, |
Cool. I've not played with it and it predates my time with this project. So, just wondering.
Yeah, me too! I'm not sure what one could do with this beyond something like reindex.io or apollo. I also came across this profile the other day, but the whole consulting/evangelist thing isn't very appealing to me (not related to apigen, either). |
Hi Team, |
graphql-java supports parsing GraphQL schema language. So far I know of two projects that use this: https://github.com/Distelli/graphql-apigen ...which generates interfaces and wiring code that allow you to simply implement the interfaces and wire-up a GraphQL object that you can query/mutate with. https://github.com/Cox-Automotive/graphql-java-tools ...which appears to adapt existing objects so they conform to a GraphQL schema (at least that is what I grasp from a casual reading of the README). |
Thank you! |
The documentation for GraphQL uses a schema language that apparently is still a little in flux given this pull request:
graphql/graphql-spec#90
...and some tooling code is already being created around the schema language:
https://github.com/apollostack/graphql-tools
If I was to send a pull request to support the specification in the above pull request would it have a chance of being accepted?
Thanks,
-Brian
The text was updated successfully, but these errors were encountered: