public class SchemaFactory extends Object
| Constructor and Description |
|---|
SchemaFactory() |
| Modifier and Type | Method and Description |
|---|---|
static graphql.schema.GraphQLSchema |
newDdlSchema(Persistence persistence,
AuthenticationService authenticationService)
Builds the GraphQL schema to manipulate the Cassandra data model, in other words create, remove
or alter keyspaces, tables, etc.
|
static graphql.schema.GraphQLSchema |
newDmlSchema(Persistence persistence,
AuthenticationService authenticationService,
Keyspace keyspace)
Builds the GraphQL schema to query and modify data for a particular CQL keyspace.
|
public static graphql.schema.GraphQLSchema newDmlSchema(Persistence persistence, AuthenticationService authenticationService, Keyspace keyspace)
This is the API exposed at /graphql/<keyspaceName>.
public static graphql.schema.GraphQLSchema newDdlSchema(Persistence persistence, AuthenticationService authenticationService)
This is the API exposed at /graphql-schema.
Copyright © 2020. All rights reserved.