GraphQLFieldTypeExt<V, S> extension

Utility extensions for creating fields in a GraphQLSchema.

Improved type inference, over field(name, type) or field constructors

on

Methods

field<P>(String name, {String? deprecationReason, String? description, GraphQLFieldResolver<V, P>? resolve, GraphQLSubscriptionFieldResolver<V>? subscribe, Iterable<GraphQLFieldInput<Object?, Object?>> inputs = const [], FieldDefinitionNode? astNode, GraphQLAttachments attachments = const []}) GraphQLObjectField<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.