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