-
Notifications
You must be signed in to change notification settings - Fork 435
Handle an array of GraphQL queries #171
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
Conversation
Codecov Report
@@ Coverage Diff @@
## master #171 +/- ##
==========================================
+ Coverage 90.01% 90.37% +0.35%
==========================================
Files 96 96
Lines 18723 18890 +167
==========================================
+ Hits 16854 17071 +217
+ Misses 1869 1819 -50
Continue to review full report at Codecov.
|
Mhm. This functionality is not in the spec and there isn't even any discussion about it on the repo about it. |
Yeah, fair points. I did question the official-ness too. I could try and make it less tightly integrated (just in the Iron/Rocket integrations), if that would be preferable? Otherwise no worries, I can continue depending on my fork, just thought I'd share :) |
How about we have an optional, off by default feature like |
@OinkIguana did you want to put this behind a flag? Otherwise we should just close. |
Oh yeah, I could do that. Been a bit busy sorry. Will try to do soon! |
Thanks! Absolutely no rush. I would imagine we want the flag to have something to do with "Apollo", as they are popular and also often add on features. |
I totally open to this being a nice wrapper functionality in the iron/rocket crates, and also something like So without the |
Should be good to go now. The main |
Awesome! Now that the changes aren't in I think gating made sense when we didn't want to put non-standard stuff by default in @theduke should probably weigh in here as well. |
Also, it would be great to add this to the integration tests to make sure we do not regress...it looks like we are still only testing the |
@theduke how does this look to you now? |
Going to merge this and let @theduke back it out if he wants something different. Thanks so much for the patch and dealing with all the back and forth! 🍻 |
Support was added in graphql-rust/juniper#171 and asked about in graphql-rust/juniper#214.
Support was added in graphql-rust/juniper#171 and asked about in graphql-rust/juniper#214.
Adds support for batched queries, as they are sent by
apollo-link-batch-http
, and probably some other libraries as well.They are handled in post requests to the Iron integration, and when parsing from a request body for the Rocket integration.
Added a test for it, and all seems to be working when used in my personal project, both with batching enabled and disabled.