Package io.stargate.sdk.gql
Class StargateGraphQLApiClient
java.lang.Object
io.stargate.sdk.gql.StargateGraphQLApiClient
Superclass to work with graphQL.
- Author:
- Cedrick LUNVEN (@clunven)
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected final LoadBalancedHttpClientGet Topology of the nodes. -
Constructor Summary
ConstructorsConstructorDescriptionDefault ConstructorStargateGraphQLApiClient(ServiceDeployment<ServiceHttp> serviceDeployment) Initialized graphQL API with a URL and a token.StargateGraphQLApiClient(String endpoint) Single instance of Stargate, could be used for tests. -
Method Summary
Modifier and TypeMethodDescriptionAccess /graphql-admin to deploy Schema.Access /graphql-schema endpoint.keyspaceDML(String keyspace) Access /graphql/{keyspace} endpoint.
-
Field Details
-
stargateHttpClient
Get Topology of the nodes.
-
-
Constructor Details
-
StargateGraphQLApiClient
public StargateGraphQLApiClient()Default Constructor -
StargateGraphQLApiClient
Single instance of Stargate, could be used for tests.- Parameters:
endpoint- service endpoint
-
StargateGraphQLApiClient
Initialized graphQL API with a URL and a token.- Parameters:
serviceDeployment- http client topology aware
-
-
Method Details
-
keyspaceDDL
Access /graphql-schema endpoint.- Returns:
- working with DDL and graphQL
-
keyspaceDML
Access /graphql/{keyspace} endpoint.- Parameters:
keyspace- target keyspace to work with- Returns:
- instance of CQLFirst
-
graphQLFirst
Access /graphql-admin to deploy Schema.- Returns:
- working with DDL and graphQL
-