/// <summary> /// will allow you to write queries on ProductOption. /// </summary> public NodeQuery onProductOption(ProductOptionDelegate buildQuery) { Query.Append("...on ProductOption{"); buildQuery(new ProductOptionQuery(Query)); Query.Append("}"); return(this); }
/// <summary> /// List of custom product options (maximum of 3 per product). /// </summary> /// <param name="first"> /// Truncate the array result to this size. /// </param> public ProductQuery options(ProductOptionDelegate buildQuery, long?first = null, string alias = null) { if (alias != null) { ValidationUtils.ValidateAlias(alias); Query.Append("options___"); Query.Append(alias); Query.Append(":"); } Query.Append("options "); Arguments args = new Arguments(); if (first != null) { args.Add("first", first); } Query.Append(args.ToString()); Query.Append("{"); buildQuery(new ProductOptionQuery(Query)); Query.Append("}"); return(this); }