public static GraphField AddArgument(this GraphField field, NamedGraphType argument) { Guard.ArgumentNotNull(field, nameof(field)); field.Arguments.Add(argument.Name, argument); return(field); }
public static GraphContext AddArgument(this GraphContext context, NamedGraphType argument) { Guard.ArgumentNotNull(context, nameof(context)); context.Arguments[argument.Name] = argument; return(context); }