Class ArrayFunction
A class for generating query functions that operate on array types
Inheritance
System.Object
ArrayFunction
Namespace: Couchbase.Lite.Query
Assembly: Couchbase.Lite.dll
Syntax
public static class ArrayFunction : object
Methods
| Improve this Doc View SourceContains(IExpression, IExpression)
Creates a function that will query if the given array expression contains the given element
Declaration
public static IExpression Contains(IExpression expression, IExpression value)
Parameters
Type | Name | Description |
---|---|---|
IExpression | expression | An expression that evaluates to an array (otherwise the query will fail) |
IExpression | value | The element to search for (either an expression or literal) |
Returns
Type | Description |
---|---|
IExpression | A function that will return true if the array contains the element, or false if it does not |
Length(IExpression)
Creates a function that will get the length of an array in question
Declaration
public static IExpression Length(IExpression expression)
Parameters
Type | Name | Description |
---|---|---|
IExpression | expression | The expression to usem when calculating (must evaluate to an array type) the result |
Returns
Type | Description |
---|---|
IExpression | A function that will get the length of the array in question |