public class ToSchemaKt
Modifier and Type | Method and Description |
---|---|
static graphql.schema.GraphQLSchema |
toSchema(java.util.List<com.expedia.graphql.TopLevelObjectDef> queries,
java.util.List<com.expedia.graphql.TopLevelObjectDef> mutations,
SchemaGeneratorConfig config)
Entry point to generate a graphql schema using reflection on the passed objects.
|
public static graphql.schema.GraphQLSchema toSchema(java.util.List<com.expedia.graphql.TopLevelObjectDef> queries, java.util.List<com.expedia.graphql.TopLevelObjectDef> mutations, SchemaGeneratorConfig config)
Entry point to generate a graphql schema using reflection on the passed objects.
queries
- List of class TopLevelObjectDef
objects to use for GraphQL queriesmutations
- List of class TopLevelObjectDef
objects to use for GraphQL mutationsconfig
- Schema generation configuration