Skip to content

Added support for query batching #48

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

Merged
merged 5 commits into from
Nov 8, 2017
Merged

Added support for query batching #48

merged 5 commits into from
Nov 8, 2017

Conversation

ronald-d-rogers
Copy link
Contributor

No description provided.

@ronald-d-rogers ronald-d-rogers mentioned this pull request Nov 2, 2017
@apottere
Copy link
Contributor

apottere commented Nov 2, 2017

Thanks for adding a PR for this! I'll take a look at it as soon as I can.


private void doBatchedQuery(Iterator<GraphQLRequest> graphQLRequests, GraphQLSchema schema, GraphQLContext context, Object rootObject, HttpServletRequest req, HttpServletResponse resp) throws Exception {
resp.setContentType(APPLICATION_JSON_UTF8);
resp.setStatus(STATUS_OK);
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

A call to query below might result in an exception. Is it ok to set this here?

@ronald-d-rogers
Copy link
Contributor Author

@apottere Have you had a chance to look at this yet? We're actually pining to have this in production here at Bloomberg BNA for one of our projects. We refactored one of our sites to use Apollo not realizing until it was too late that Apollo required server support for query batching.

@apottere
Copy link
Contributor

apottere commented Nov 8, 2017

@ronald-d-rogers sorry, I've been swamped lately and just got a chance to review it. It looks good to me, thanks for the great work on this 👍

@apottere apottere merged commit 3012421 into graphql-java-kickstart:master Nov 8, 2017
@ronald-d-rogers
Copy link
Contributor Author

Thanks! Don't suppose we could get a release? We were just about to make the decision to bundle the forked version into the build but now that this has been merged...

@ronald-d-rogers
Copy link
Contributor Author

I take that back, looks like a release has already been cut!

@dkubicki
Copy link

@ronald-d-rogers #295 Have you tried some kind of this approach?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants