-
- All Implemented Interfaces:
public final class ToSchemaKt
-
-
Method Summary
Modifier and Type Method Description final static GraphQLSchema
toSchema(SchemaGeneratorConfig config, List<TopLevelObject> queries, List<TopLevelObject> mutations, List<TopLevelObject> subscriptions, TopLevelObject schemaObject)
Entry point to generate a graphql schema using reflection on the passed objects. -
-
Method Detail
-
toSchema
final static GraphQLSchema toSchema(SchemaGeneratorConfig config, List<TopLevelObject> queries, List<TopLevelObject> mutations, List<TopLevelObject> subscriptions, TopLevelObject schemaObject)
Entry point to generate a graphql schema using reflection on the passed objects.
- Parameters:
config
- schema generation configurationqueries
- list of TopLevelObject to use for GraphQL queriesmutations
- optional list of TopLevelObject to use for GraphQL mutationssubscriptions
- optional list of TopLevelObject to use for GraphQL subscriptionsschemaObject
- optional TopLevelObject reference to the annotated schema class
-
-
-
-