public class SchemaProcessor extends Object
| Constructor and Description |
|---|
SchemaProcessor(AuthorizationService authorizationService,
DataStoreFactory dataStoreFactory,
boolean isPersisted) |
| Modifier and Type | Method and Description |
|---|---|
ProcessedSchema |
process(String source,
Keyspace keyspace)
Processes the GraphQL source provided by the user to produce a complete working schema:
parse the source;
add any missing elements: generated types, built-in directives, etc.
|
public SchemaProcessor(AuthorizationService authorizationService, DataStoreFactory dataStoreFactory, boolean isPersisted)
isPersisted - whether we are processing a schema already stored in the database, or a
schema that a user is attempting to deploy. This is just used to customize a couple of
error messages.public ProcessedSchema process(String source, Keyspace keyspace)
graphql.GraphqlErrorException - if any error was encountered during processingCopyright © 2021. All rights reserved.