copyFieldWithName<V, S, P> function
GraphQLObjectField<V, S, P>
copyFieldWithName<V, S, P>(
- String name,
- GraphQLObjectField<
V, S, P> field
Return a GraphQLObjectField with name
and all other
properties copied from field
Implementation
GraphQLObjectField<V, S, P> copyFieldWithName<V, S, P>(
String name,
GraphQLObjectField<V, S, P> field,
) {
return GraphQLObjectField(
name,
field.type,
inputs: field.inputs,
resolve: field.resolve,
subscribe: field.subscribe,
description: field.description,
deprecationReason: field.deprecationReason,
);
}