ArrayExpression Class |
Namespace: Couchbase.Lite.Query
public static class ArrayExpression
The ArrayExpression type exposes the following members.
Name | Description | |
---|---|---|
Any |
Returns the start of an expression that will evaluate if any elements
inside of an array match a given predicate
Usage: ArrayExpression.Any("x").In(Expression.Property("prop")).Satisfies(ArrayExpression.Variable("x").EqualTo(42)) | |
AnyAndEvery |
Returns the start of an expression that will evaluate the following:
1. The array is not empty (has "any" elements)
2. Every element in the array matches a given predicate ("every" element matches)
Usage: ArrayExpression.AnyAndEvery("x").In(Expression.Property("prop")).Satisfies(ArrayExpression.Variable("x").EqualTo(42)) | |
Every |
Returns the start of an expression that will evaluate if every element inside
of an array matches a given predicate (note: That means that an empty array will
return true because "all zero" elements match)
Usage: ArrayExpression.Every("x").In(Expression.Property("prop")).Satisfies(ArrayExpression.Variable("x").EqualTo(42)) | |
Variable |
Returns an expression representing the value of a named variable
assigned by earlier calls to Any(IVariableExpression) and family.
|