GraphQLObjectField<Value, Serialized> constructor

GraphQLObjectField<Value, Serialized>(
  1. String name,
  2. GraphQLType<Value, Serialized> type, {
  3. Iterable<GraphQLFieldInput> arguments = const <GraphQLFieldInput>[],
  4. required GraphQLFieldResolver<Value, Serialized>? resolve,
  5. String? deprecationReason,
  6. String? description,
})

Implementation

GraphQLObjectField(this.name, this.type,
    {Iterable<GraphQLFieldInput> arguments = const <GraphQLFieldInput>[],
    required this.resolve,
    this.deprecationReason,
    this.description}) {
//    assert(type != null, 'GraphQL fields must specify a `type`.');
//    assert(
//        resolve != null, 'GraphQL fields must specify a `resolve` callback.');
//    this.inputs.addAll(arguments ?? <GraphQLFieldInput>[]);
  inputs.addAll(arguments);
}