inputField<T, Serialized> function

GraphQLFieldInput<T, Serialized> inputField<T, Serialized>(
  1. String name,
  2. GraphQLType<T, Serialized> type, {
  3. String? description,
  4. T? defaultValue,
  5. String? deprecationReason,
  6. bool defaultsToNull = false,
  7. InputValueDefinitionNode? astNode,
  8. GraphQLAttachments attachments = const [],
})

Shorthand for generating a GraphQLFieldInput.

Implementation

GraphQLFieldInput<T, Serialized> inputField<T, Serialized>(
  String name,
  GraphQLType<T, Serialized> type, {
  String? description,
  T? defaultValue,
  String? deprecationReason,
  bool defaultsToNull = false,
  InputValueDefinitionNode? astNode,
  GraphQLAttachments attachments = const [],
}) {
  return GraphQLFieldInput(
    name,
    type,
    description: description,
    deprecationReason: deprecationReason,
    defaultValue: defaultValue,
    defaultsToNull: defaultsToNull,
    astNode: astNode,
    attachments: attachments,
  );
}