/// <summary> /// Filters results based on a sub query /// </summary> public Query Where(GraphPredicate condition) { Steps.Add("where(" + condition.ToString() + ")"); return(this as Query); }
/// <summary> /// Filters results based on the provided condition /// </summary> public Query Is(GraphPredicate predicate) { Steps.Add("is(" + predicate.ToString() + ")"); return(this as Query); }
/// <summary> /// Remove the traverser if its element does not have a key value that satisfies the bi-predicate. /// </summary> /// <param name="key">The key to filter by</param> /// <param name="predicate">The predicate to filter by</param> public Query Has(string key, GraphPredicate predicate) { Steps.Add("has('" + Sanitize(key) + "', " + predicate.ToString() + ")"); return(this as Query); }