jsonArrayLength method

Expression<int> jsonArrayLength([
  1. String? path
])

Assuming that this is an expression evaluating to a binary JSONB array, returns the length of the array.

See JsonExtensions.jsonArrayLength for more details and https://www.sqlite.org/json1.html#jsonb for details on jsonb.

Implementation

Expression<int> jsonArrayLength([String? path]) {
  // the function accepts both formats, and this way we avoid some duplicate
  // code.
  return dartCast<String>().jsonArrayLength(path);
}