graphQLSchema function
GraphQLSchema
graphQLSchema({
- required GraphQLObjectType queryType,
- GraphQLObjectType? mutationType,
- GraphQLObjectType? subscriptionType,
- Iterable<
GraphQLDirectiveType> ? directiveTypes,
A shorthand for creating a GraphQLSchema.
Implementation
GraphQLSchema graphQLSchema(
{required GraphQLObjectType queryType,
GraphQLObjectType? mutationType,
GraphQLObjectType? subscriptionType,
Iterable<GraphQLDirectiveType>? directiveTypes}) =>
GraphQLSchema(
queryType: queryType,
mutationType: mutationType,
subscriptionType: subscriptionType,
directiveTypes: directiveTypes);