Package | Description |
---|---|
org.springframework.graphql.client |
This package contains a
GraphQlClient
along with HTTP and WebSocket extensions. |
Modifier and Type | Method and Description |
---|---|
GraphQlClient.RequestSpec |
GraphQlClient.RequestSpec.attribute(String name,
Object value)
Set a client request attribute.
|
GraphQlClient.RequestSpec |
GraphQlClient.RequestSpec.attributes(Consumer<Map<String,Object>> attributesConsumer)
Manipulate the client request attributes.
|
GraphQlClient.RequestSpec |
GraphQlClient.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 |
AbstractDelegatingGraphQlClient.document(String document) |
GraphQlClient.RequestSpec |
GraphQlClient.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 . |
GraphQlClient.RequestSpec |
AbstractDelegatingGraphQlClient.documentName(String name) |
GraphQlClient.RequestSpec |
GraphQlClient.RequestSpec.extension(String name,
Object value)
Add a value for a protocol extension.
|
GraphQlClient.RequestSpec |
GraphQlClient.RequestSpec.extensions(Map<String,Object> extensions)
Add all given protocol extensions.
|
GraphQlClient.RequestSpec |
GraphQlClient.RequestSpec.operationName(String operationName)
Set the name of the operation in the
document
to execute, if the document contains multiple operations. |
GraphQlClient.RequestSpec |
GraphQlClient.RequestSpec.variable(String name,
Object value)
Add a value for a variable defined by the operation.
|
GraphQlClient.RequestSpec |
GraphQlClient.RequestSpec.variables(Map<String,Object> variables)
Add all given values for variables defined by the operation.
|