Interface GraphqlRequest
@UnstableApi
public interface GraphqlRequest
A GraphQL request.
-
Method Summary
Modifier and TypeMethodDescriptionReturns the extensions of thequery().static GraphqlRequestReturns a newly-createdGraphqlRequestwith the specifiedquery.static GraphqlRequestof(String query, @Nullable String operationName, Map<String, Object> variables, Map<String, Object> extensions) @Nullable StringReturns the operation name of thequery().query()Returns the GraphQL query of the current request.
-
Method Details
-
of
Returns a newly-createdGraphqlRequestwith 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 emptyMapis returned.
-