GraphQLCompositeType<P> class
abstract
A GraphQLType with nested properties
- Inheritance
-
- Object
- GraphQLType<
P, Map< String, dynamic> > - GraphQLCompositeType
- Implemented types
-
- GraphQLNamedType<
P, Map< String, dynamic> >
- GraphQLNamedType<
- Implementers
- Available Extensions
Constructors
Properties
- astNode → TypeDefinitionNode?
-
If this was parsed from an ast, the node in that ast
no setteroverride
- attachments → GraphQLAttachments
-
Other custom values that may modify the execution, validation or
introspection for this element
no setteroverride
- description → String?
-
A description of this type, which, while optional, can be
very useful in tools like GraphiQL.
no setterinherited
-
extra
→ GraphQLTypeDefinitionExtra<
TypeDefinitionNode, TypeExtensionNode> -
no setterinherited
-
generic
→ GenericHelp<
P> -
Utility for working with the
Value
Generic typeno setterinherited - hashCode → int
-
The hash code for this object.
no setterinherited
- isNonNullable → bool
-
true when the type can not be null
no setterinherited
- isNullable → bool
-
true when the type can be null
no setterinherited
- name → String
-
The name of this type.
no setterinherited
-
possibleTypes
→ List<
GraphQLObjectType> -
The possible implementations for this type
no setter
- printableName → String
-
The name of this type with defaults for GraphQLWrapperType.
Can be used as a name of another GraphQL type,
useful for composing names for generic types, for example.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
coerceToInputObject(
) → GraphQLType< P, Map< String, dynamic> > -
Turns this type into one suitable for being provided as an input
to a GraphQLObjectField.
inherited
-
deserialize(
SerdeCtx serdeCtx, Map< String, dynamic> serialized) → P -
Deserializes a serialized value.
inherited
-
list(
) → GraphQLListType< P?, Map< String, dynamic> > -
Returns a GraphQLListType with the inner type set to this
inherited
-
nonNull(
) → GraphQLNonNullType< P, 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 nonexistent method or property is accessed.
inherited
-
nullable(
) → GraphQLType< P, Map< String, dynamic> > -
Returns a nullable type that represents this type.
If the type is isNullable returns itself without changes.
inherited
-
serialize(
P value) → Map< String, dynamic> -
Serializes a
value
.inherited -
serializeSafe(
Object? value, {bool nested = true}) → Map< String, dynamic> -
inherited
-
toString(
) → String -
A string representation of this object.
inherited
-
validate(
String key, Object? input) → ValidationResult< Map< String, dynamic> > -
Performs type coercion against an
input
value, and returns a list of errors if the validation was unsuccessful.inherited -
when<
O> ({required O enum_(GraphQLEnumType< P> ), required O scalar(GraphQLScalarType<P, Map< ), required O object(GraphQLObjectType<String, dynamic> >P> ), required O input(GraphQLInputObjectType<P> ), required O union(GraphQLUnionType<P> ), required O list(GraphQLListType), required O nonNullable(GraphQLNonNullType<P, Map< )}) → OString, dynamic> > -
Executes any of the provided function with this as argument.
The function executed depends on the type of this
inherited
-
whenMaybe<
O> ({O enum_(GraphQLEnumType< P> )?, O scalar(GraphQLScalarType<P, Map< )?, O object(GraphQLObjectType<String, dynamic> >P> )?, O input(GraphQLInputObjectType<P> )?, O union(GraphQLUnionType<P> )?, O list(GraphQLListType)?, O nonNullable(GraphQLNonNullType<P, Map< )?, required O orElse(GraphQLType)}) → OString, dynamic> > -
Similar to when, but with optional arguments and
a required default case
orElse
, which is executed when none of the provided functions match thisinherited -
whenOrNull<
O> ({O? enum_(GraphQLEnumType< P> )?, O? scalar(GraphQLScalarType<P, Map< )?, O? object(GraphQLObjectType<String, dynamic> >P> )?, O? input(GraphQLInputObjectType<P> )?, O? union(GraphQLUnionType<P> )?, O? list(GraphQLListType)?, O? nonNullable(GraphQLNonNullType<P, Map< )?}) → O?String, dynamic> > -
Similar to when, but with optional arguments. Returns null
when none of the provided functions match this
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited