Interface GraphqlRequest
A GraphQL request.
-
Method Summary
Modifier and TypeMethodDescriptionReturns the extensions of thequery()
.static GraphqlRequest
Returns a newly-createdGraphqlRequest
with the specifiedquery
.static GraphqlRequest
of
(String query, @Nullable String operationName, Map<String, Object> variables, Map<String, Object> extensions) Returns the operation name of thequery()
.query()
Returns the GraphQL query of the current request.
-
Method Details
-
of
Returns a newly-createdGraphqlRequest
with the specifiedquery
. -
of
-
query
String query()Returns the GraphQL query of the current request. -
operationName
-
variables
-
extensions
Returns the extensions of thequery()
. This entry is reserved for implementors to extend the protocol. If not specified, an emptyMap
is returned.
-