You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The term "query" is ambiguous and although one round of cleanup was applied in 44a034e, it remained on RequestInput because "query" is the name of the request parameter in the GraphQL over HTTP (preliminary) spec and likewise in the GraphQL over WebSocket spec.
That said, GraphQL over HTTP also has this:
Be aware that query is a misleading name as it can contain a string describing multiple operations, each of which may be a query, mutation or subscription. A better name would have been document, but the term query is well established.
While the name on the wire is impractical to change, we still have an opportunity to align with the GraphQL spec by renaming query to document in RequestInput, as well as in GraphQlClient and GraphQlTester. For a good summary of the relevant terms (request, document, operation, etc), see the description of the PR that applied the same changes to the GraphQL spec.
As part of this we can also extract a GraphQlRequest super class of RequestInput that contains only what is in the GraphQL request and that can be used within GraphQlClient and GraphQlTester.
The text was updated successfully, but these errors were encountered:
This commit switches to 1.0.0-SNAPSHOT for Spring GraphQL, before its
upcoming 1.0.0-M6 version.
This commit adapts to the changes introduced in
spring-projects/spring-graphql#317 : now that `GraphQlClient` has been
introduced, `GraphQlTester` has been aligned with the new
infrastructure. The `@GraphQlTest` and `@SpringBootTest` testing support
is now using different variants for each.
All samples have been updated to use the proper GraphQL terminology, see
and spring-projects/spring-graphql#310 .
See gh-29637
The term "query" is ambiguous and although one round of cleanup was applied in 44a034e, it remained on
RequestInput
because "query" is the name of the request parameter in the GraphQL over HTTP (preliminary) spec and likewise in the GraphQL over WebSocket spec.That said, GraphQL over HTTP also has this:
While the name on the wire is impractical to change, we still have an opportunity to align with the GraphQL spec by renaming
query
todocument
inRequestInput
, as well as inGraphQlClient
andGraphQlTester
. For a good summary of the relevant terms (request, document, operation, etc), see the description of the PR that applied the same changes to the GraphQL spec.As part of this we can also extract a
GraphQlRequest
super class ofRequestInput
that contains only what is in the GraphQL request and that can be used withinGraphQlClient
andGraphQlTester
.The text was updated successfully, but these errors were encountered: