public class SchemaProcessor extends Object
| Constructor and Description |
|---|
SchemaProcessor(StargateBridgeClient bridge,
boolean isPersisted) |
| Modifier and Type | Method and Description |
|---|---|
ProcessedSchema |
process(String source,
io.stargate.bridge.proto.Schema.CqlKeyspaceDescribe 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(StargateBridgeClient bridge, 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 ofpublic ProcessedSchema process(String source, io.stargate.bridge.proto.Schema.CqlKeyspaceDescribe keyspace)
graphql.GraphqlErrorException - if any error was encountered during processingCopyright © 2022. All rights reserved.