public static TBuilder WithVariable <TBuilder>(this IGraphQLBuilder builder, string name, object value) where TBuilder : IGraphQLBuilder { builder.CreateAndApplyVariables(variables => { variables[name] = value; }); return((TBuilder)builder); }
public static TBuilder WithVariables <TBuilder>(this IGraphQLBuilder builder, IEnumerable <KeyValuePair <string, string> > values) where TBuilder : IGraphQLBuilder { builder.CreateAndApplyVariables(variables => { foreach (var value in values) { variables[value.Key] = value.Value; } }); return((TBuilder)builder); }