-
-
Notifications
You must be signed in to change notification settings - Fork 747
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
Batch request with one Operation and multiple queries #2278
Comments
No, that is not allowed and would violate the spec. When doing it over HTTP we are preprocessing the queries to make them valid, but this query is getting straight to the GraphQL processor which marks them as invalid. |
Operation batching is the closest to what you ask here. |
@michaelstaib Thanks. That's the answer I was looking for. |
The problem here is the export directive. Just having multiple root fields in one operation is possible, but each of them is independent from each other. |
Closing this issue. |
As mentioned in Batching document, I understand that Hot Chocolate supports sending multiple Operations in a single HTTP Post request.
But does Hot Chocolate support executing multiple queries in a single Operation? like:
However, I executed this query and I get an error saying: "Variable foo is not declared".
I am not sure if it's not supported or a bug.
Thanks guys
The text was updated successfully, but these errors were encountered: