inputField<T, Serialized> function

GraphQLInputObjectField<T, Serialized> inputField<T, Serialized>(
  1. String name,
  2. GraphQLType<T, Serialized> type, {
  3. String? description,
  4. T? defaultValue,
})

Shorthand for generating a GraphQLInputObjectField.

Implementation

GraphQLInputObjectField<T, Serialized> inputField<T, Serialized>(
    String name, GraphQLType<T, Serialized> type,
    {String? description, T? defaultValue}) {
  return GraphQLInputObjectField(name, type,
      description: description, defaultValue: defaultValue);
}