GraphQLObjectType class

A GraphQLType that specifies the shape of structured data, with multiple fields that can be resolved independently of one another.

Inheritance
  • Object
  • GraphQLType<Map<String, dynamic>, Map<String, dynamic>>
  • GraphQLObjectType

Constructors

GraphQLObjectType(String name, String description, { bool isInterface: false })

Properties

description → String
An optional description of this type; useful for tools like GraphiQL.
final
fields → List<GraphQLObjectField>
The list of fields that an object of this type is expected to have.
final
interfaces → List<GraphQLObjectType>
A list of other types that this object type is known to implement.
read-only
isInterface → bool
true if this type should be treated as an interface, which child types can inheritFrom. [...]
final
name → String
The name of this type.
final
possibleTypes → List<GraphQLObjectType>
A list of other types that implement this interface.
read-only
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

coerceToInputObject() GraphQLType<Map<String, dynamic>, Map<String, dynamic>>
Turns this type into one suitable for being provided as an input to a GraphQLObjectField.
override
deserialize(Map value) → Map<String, dynamic>
Deserializes a serialized value.
override
inheritFrom(GraphQLObjectType other) → void
Declares that this type inherits from another parent type. [...]
isImplementationOf(GraphQLObjectType type) → bool
Returns true if this type, or any of its parents, is a direct descendant of another given type.
serialize(Map value) → Map<String, dynamic>
Serializes an arbitrary input value.
override
toInputObject(String name, { String description }) GraphQLInputObjectType
Converts this into a GraphQLInputObjectType.
validate(String key, Map input) ValidationResult<Map<String, dynamic>>
Performs type coercion against an input value, and returns a list of errors if the validation was unsuccessful.
override
convert(dynamic value) → Map<String, dynamic>
Attempts to cast a dynamic value into a Serialized instance.
inherited
nonNullable() GraphQLType<Map<String, dynamic>, Map<String, dynamic>>
Creates a non-nullable type that represents this type, and enforces that a field of this type is present in input data.
inherited
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. [...]