GraphQLFieldTypeExt<V, S> extension
Utility extensions for creating fields in a GraphQLSchema.
Improved type inference, over field(name, type)
or field constructors
- on
-
- GraphQLType<
V, S>
- GraphQLType<
Methods
-
field<
P> (String name, {String? deprecationReason, String? description, GraphQLFieldResolver< V, P> ? resolve, GraphQLSubscriptionFieldResolver<V> ? subscribe, Iterable<GraphQLFieldInput< inputs = const [], FieldDefinitionNode? astNode, GraphQLAttachments attachments = const []}) → GraphQLObjectField<Object?, Object?> >V, S, P> -
Utility for creating an GraphQLObjectField with
type
== this -
inputField(
String name, {String? description, V? defaultValue, String? deprecationReason, bool defaultsToNull = false, InputValueDefinitionNode? astNode, GraphQLAttachments attachments = const []}) → GraphQLFieldInput< V, S> - Shorthand for generating a GraphQLFieldInput.