GraphQLObjectField<Value, Serialized> constructor
GraphQLObjectField<Value, Serialized> (
- String name,
- GraphQLType<
Value, Serialized> type, { - Iterable<
GraphQLFieldInput> arguments = const <GraphQLFieldInput>[], - required GraphQLFieldResolver<
Value, Serialized> ? resolve, - String? deprecationReason,
- 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);
}