/// <summary> /// Returns the offset position of a string in another string. /// <para> /// See the <see href="https://docs.fauna.com/fauna/current/api/fql/functions/findstr">FaunaDB FindStr Function</see> /// </para> /// </summary> public static Expr FindStr(Expr expr, Expr find, Expr start = null) => UnescapedObject.With("findstr", expr, "find", find, "start", start);
/// <summary> /// Creates a new Get expression. /// <para> /// See the <see href="https://fauna.com/documentation/queries#read_functions">FaunaDB Read Functions</see> /// </para> /// </summary> public static Expr Get(Expr @ref, Expr ts = null) => UnescapedObject.With("get", @ref, "ts", ts);
/// <summary> /// Creates a new Exists expression. /// <para> /// See the <see href="https://fauna.com/documentation/queries#read_functions">FaunaDB Read Functions</see> /// </para> /// </summary> public static Expr Exists(Expr @ref, Expr ts = null) => UnescapedObject.With("exists", @ref, "ts", ts);
public static Expr Classes(Expr scope = null) => UnescapedObject.With("classes", scope ?? Null());
/// <summary> /// Returns the sum of all items. /// <para> /// See the <see href="https://docs.fauna.com/fauna/current/api/fql/functions/sum">FaunaDB Sum Function</see> /// </para> /// </summary> public static Expr Sum(Expr expr) => UnescapedObject.With("sum", expr);
/// <summary> /// <para> /// See the <see href="https://docs.fauna.com/fauna/current/api/fql/functions/containsstr">FaunaDB ContainsStr Function</see> /// </para> /// </summary> public static Expr ContainsStr(Expr value, Expr search) => UnescapedObject.With("containsstr", value, "search", search);
/// <summary> /// <para> /// See the <see href="https://docs.fauna.com/fauna/current/api/fql/functions/regexescape">FaunaDB RegexEscape Function</see> /// </para> /// </summary> public static Expr RegexEscape(Expr value) => UnescapedObject.With("regexescape", value);
/// <summary> /// Returns a string consisting of the value string repeated number times. /// <para> /// See the <see href="https://docs.fauna.com/fauna/current/api/fql/functions/repeat">FaunaDB Repeat Function</see> /// </para> /// </summary> public static Expr Repeat(Expr expr, Expr number) => UnescapedObject.With("repeat", expr, "number", number);
/// <summary> /// Replaces a string. /// <para> /// See the <see href="https://docs.fauna.com/fauna/current/api/fql/functions/replacestr">FaunaDB ReplaceStr Function</see> /// </para> /// </summary> public static Expr ReplaceStr(Expr expr, Expr find, Expr replace) => UnescapedObject.With("replacestr", expr, "find", find, "replace", replace);
/// <summary> /// Creates a new Role expression. /// <para> /// See the <see href="https://app.fauna.com/documentation/reference/queryapi#miscellaneous-functions">FaunaDB Miscellaneous Functions</see> /// </para> /// </summary> public static Expr Role(Expr role_name, Expr scope = null) => UnescapedObject.With("role", role_name, "scope", scope);
/// <summary> /// Returns a string consisting of the value string repeated number times. /// <para> /// See the <see href="https://docs.fauna.com/fauna/current/api/fql/functions/repeat">FaunaDB Repeat Function</see> /// </para> /// </summary> public static Expr Repeat(Expr expr) => UnescapedObject.With("repeat", expr);
/// <summary> /// Returns a string in which all uppercase characters have been replaced by their corresponding lowercase characters. /// <para> /// See the <see href="https://docs.fauna.com/fauna/current/api/fql/functions/lowercase">FaunaDB LowerCase Function</see> /// </para> /// </summary> public static Expr LowerCase(Expr expr) => UnescapedObject.With("lowercase", expr);
/// <summary> /// Returns the number of code points in the string. /// <para> /// See the <see href="https://docs.fauna.com/fauna/current/api/fql/functions/length">FaunaDB Length Function</see> /// </para> /// </summary> public static Expr Length(Expr expr) => UnescapedObject.With("length", expr);
/// <summary> /// Returns an array of up to 1024 objects describing where the pattern is found in the search string. /// <para> /// See the <see href="https://docs.fauna.com/fauna/current/api/fql/functions/findstrregex">FaunaDB FindStrRegex Function</see> /// </para> /// </summary> public static Expr FindStrRegex(Expr expr, Expr pattern, Expr start = null, Expr numResults = null) => UnescapedObject.With("findstrregex", expr, "pattern", pattern, "start", start, "num_results", numResults);
/// <summary> /// See the <see href="https://docs.fauna.com/fauna/current/api/fql/functions/startswith">FaunaDB StartsWith Function</see> /// </summary> public static Expr StartsWith(Expr value, Expr search) => UnescapedObject.With("startswith", value, "search", search);
/// <summary> /// Replaces all the occurrences (or the first one) of find pattern substituted with replace string. /// <para> /// See the <see href="https://docs.fauna.com/fauna/current/api/fql/functions/replacestrregex">FaunaDB Length Function</see> /// </para> /// </summary> public static Expr ReplaceStrRegex(Expr expr, Expr pattern, Expr replace, Expr first = null) => UnescapedObject.With("replacestrregex", expr, "pattern", pattern, "replace", replace, "first", first);
/// <summary> /// See the <see href="https://docs.fauna.com/fauna/current/api/fql/functions/endswith">FaunaDB EndsWith Function</see> /// </summary> public static Expr EndsWith(Expr value, Expr search) => UnescapedObject.With("endswith", value, "search", search);
/// <summary> /// Replaces a string inside. /// <para> /// See the <see href="https://docs.fauna.com/fauna/current/api/fql/functions/space">FaunaDB Space Function</see> /// </para> /// </summary> public static Expr Space(Expr count) => UnescapedObject.With("space", count);
/// <summary> /// <para> /// See the <see href="https://docs.fauna.com/fauna/current/api/fql/functions/containsstrregex">FaunaDB ContainsStrRegex Function</see> /// </para> /// </summary> public static Expr ContainsStrRegex(Expr value, Expr pattern) => UnescapedObject.With("containsstrregex", value, "pattern", pattern);
/// <summary> /// Returns a portion of the string. /// <para> /// See the <see href="https://docs.fauna.com/fauna/current/api/fql/functions/substring">FaunaDB SubString Function</see> /// </para> /// </summary> public static Expr SubString(Expr expr, Expr start = null, Expr length = null) => UnescapedObject.With("substring", expr, "start", start, "length", length);
/// <summary> /// <para> /// See the <see href="https://docs.fauna.com/fauna/current/api/fql/functions/documents">FaunaDB Documents Function</see> /// </para> /// </summary> public static Expr Documents(Expr collection) => UnescapedObject.With("documents", collection);
/// <summary> /// Returns a string which has the first letter of each word capitalized. /// <para> /// See the <see href="https://docs.fauna.com/fauna/current/api/fql/functions/titlecase">FaunaDB TitleCase Function</see> /// </para> /// </summary> public static Expr TitleCase(Expr expr) => UnescapedObject.With("titlecase", expr);
/// <summary> /// Returns the number of items that exist in the array or set /// <para> /// See the <see href="https://docs.fauna.com/fauna/current/api/fql/functions/count">FaunaDB Count Function</see> /// </para> /// </summary> public static Expr Count(Expr expr) => UnescapedObject.With("count", expr);
/// <summary> /// Returns a string which has both the leading and trailing white spaces, tabs, and new lines removed. /// <para> /// See the <see href="https://docs.fauna.com/fauna/current/api/fql/functions/trim">FaunaDB Trim Function</see> /// </para> /// </summary> public static Expr Trim(Expr expr) => UnescapedObject.With("trim", expr);
/// <summary> /// Returns the average value of the items. /// <para> /// See the <see href="https://docs.fauna.com/fauna/current/api/fql/functions/mean">FaunaDB Mean Function</see> /// </para> /// </summary> public static Expr Mean(Expr expr) => UnescapedObject.With("mean", expr);
/// <summary> /// Returns a string which has all lowercase characters in the string replaced by their corresponding uppercase characters. /// <para> /// See the <see href="https://docs.fauna.com/fauna/current/api/fql/functions/uppercase">FaunaDB UpperCase Function</see> /// </para> /// </summary> public static Expr UpperCase(Expr expr) => UnescapedObject.With("uppercase", expr);
/// <summary> /// Creates a new KeyFromSecret expression. /// <para> /// See the <see href="https://fauna.com/documentation/queries#read_functions">FaunaDB Read Functions</see> /// </para> /// </summary> public static Expr KeyFromSecret(Expr secret) => UnescapedObject.With("key_from_secret", secret);
/// <summary> /// Returns an internal reference to collections object. Useful to paginate over all classes of a given scope database. /// <para> /// See the <see href="https://docs.fauna.com/fauna/current/api/fql/functions/collections">FaunaDB Collections</see> /// </para> /// </summary> public static Expr Collections(Expr scope = null) => UnescapedObject.With("collections", scope ?? Null());
/// <summary> /// Creates a new Exists expression. /// <para> /// See the <see href="https://docs.fauna.com/fauna/current/api/fql/functions/reduce">FaunaDB Reduce Function</see> /// </para> /// </summary> public static Expr Reduce(Expr lambda, Expr initial, Expr collection) => UnescapedObject.With("reduce", lambda, "initial", initial, "collection", collection);
/// <summary> /// Creates a new Trunc expression. /// <para> /// See the <see href="https://docs.fauna.com/fauna/current/api/fql/functions/trunc">FaunaDB Trunc Function</see> /// </para> /// </summary> public static Expr Trunc(Expr expr, Expr precision = null) => UnescapedObject.With("trunc", expr, "precision", precision);