public static FieldBuilder <TArgumentGraphType, TArgumentType> PagingArguments <TArgumentGraphType, TArgumentType>(this FieldBuilder <TArgumentGraphType, TArgumentType> field) { return(field .Argument <IntGraphType, int>("first", "the first n elements", 0) .Argument <IntGraphType, int>("last", "the last n elements", 0) .Argument <IntGraphType, int>("skip", "the number of elements to skip", 0)); }
public DocumentIOFieldBuilder <TSourceType, TReturnType> Argument <TArgumentType>( string name = "input", string description = null) where TArgumentType : GraphType { builder.Argument <TArgumentType>(name, description); return(this); }
public static FieldBuilder <object, object> AddPagingArguments(this FieldBuilder <object, object> builder) { return(builder .Argument <NonNullGraphType <IntGraphType> >("from", "Indicates sequence number of first element") .Argument <NonNullGraphType <IntGraphType> >("count", "Indicates number of elements")); }