Package com.complexible.stardog.graphql
Interface GraphQLSchemaManager
public interface GraphQLSchemaManager
Interface for the storage and retrieval of GraphQL schemas.
- Since:
- 5.1
- Version:
- 5.1
- Author:
- Evren Sirin
-
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionvoidAdds a new GraphQLSchema to this databasevoidClears all schemasgraphql.schema.GraphQLSchemaReturns the schema with the given nameReturns all the GraphQL schemas associated with this databasevoidremoveSchema(String name) Removes the specified schemavoidupdateSchema(String name, graphql.schema.GraphQLSchema schema) Updates an existing GraphQLSchema in the database, or adds the schema if an existing schema is not found.
-
Field Details
-
DEFAULT_SCHEMA
- See Also:
-
-
Method Details
-
getSchema
Returns the schema with the given name- Parameters:
name- name of the schema- Returns:
- GraphQL schema
- Throws:
StardogException- if there was any error reading
-
getSchemas
Returns all the GraphQL schemas associated with this database- Returns:
- the schemas associated with this database
- Throws:
StardogException- if there was an error getting the constraints
-
addSchema
Adds a new GraphQLSchema to this database- Parameters:
name- name of the schema to addschema- the schema to add- Throws:
StardogException- if there was an error writing to the index
-
updateSchema
Updates an existing GraphQLSchema in the database, or adds the schema if an existing schema is not found.- Parameters:
name- name of the schema to updateschema- the next version of the schema- Throws:
StardogException- if there was any error writing to the index
-
removeSchema
Removes the specified schema- Parameters:
name- the name of the schema to remove- Throws:
StardogException- if there was an error while removing
-
clearSchemas
Clears all schemas- Throws:
StardogException- if there was an error while clearing the schemas
-