GraphQLSchema class

Represents a GraphQL schema.

Annotations

Constructors

GraphQLSchema({List<GraphQLType> types, GraphQLType queryType, GraphQLType mutationType, GraphQLType subscriptionType, List<GraphQLDirective> directives})
Instantiates a GraphQL schema.
GraphQLSchema.fromJson(Map<String, dynamic> json)
Build a GraphQL schema from a JSON map.
factory

Properties

directives → List<GraphQLDirective>
A list of GraphQL directives in this schema.
final
mutationType GraphQLType
The GraphQL mutation type in this schema.
final
queryType GraphQLType
The GraphQL query type in this schema.
final
subscriptionType GraphQLType
The GraphQL subscription type in this schema.
final
types → List<GraphQLType>
A list of GraphQL types in this schema.
final
hashCode → int
The hash code for this object.
read-only, inherited
runtimeType → Type
A representation of the runtime type of the object.
read-only, inherited

Methods

toJson() → Map<String, dynamic>
Convert this GraphQL schema instance to JSON.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed.
inherited
toString() → String
Returns a string representation of this object.
inherited

Operators

operator ==(dynamic other) → bool
The equality operator.
inherited