inputField<T, Serialized> function
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 [],
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,
);
}