graphQLSchema function

GraphQLSchema graphQLSchema({
  1. required GraphQLObjectType queryType,
  2. GraphQLObjectType? mutationType,
  3. GraphQLObjectType? subscriptionType,
  4. 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);