public abstract class AbstractDelegatingGraphQlClient extends Object implements GraphQlClient
GraphQlClient
extensions that assist with building an
underlying transport, but otherwise delegate to the default
GraphQlClient
implementation to execute requests.
Subclasses must implement GraphQlClient.mutate()
to return a
builder for the specific GraphQlClient
extension.
AbstractGraphQlClientBuilder
GraphQlClient.Builder<B extends GraphQlClient.Builder<B>>, GraphQlClient.RequestSpec, GraphQlClient.RetrieveSpec, GraphQlClient.RetrieveSubscriptionSpec
Modifier | Constructor and Description |
---|---|
protected |
AbstractDelegatingGraphQlClient(GraphQlClient graphQlClient) |
Modifier and Type | Method and Description |
---|---|
GraphQlClient.RequestSpec |
document(String document)
Start defining a GraphQL request with the given document, which is the
textual representation of an operation (or operations) to perform,
including selection sets and fragments.
|
GraphQlClient.RequestSpec |
documentName(String name)
Variant of
GraphQlClient.document(String) that uses the given key to resolve
the GraphQL document from a file with the help of the configured
DocumentSource . |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
builder, mutate
protected AbstractDelegatingGraphQlClient(GraphQlClient graphQlClient)
public GraphQlClient.RequestSpec document(String document)
GraphQlClient
document
in interface GraphQlClient
document
- the document for the requestpublic GraphQlClient.RequestSpec documentName(String name)
GraphQlClient
GraphQlClient.document(String)
that uses the given key to resolve
the GraphQL document from a file with the help of the configured
DocumentSource
.documentName
in interface GraphQlClient