Skip to content

Testing support 'containsArray' keyword in where clause #22

Open
@mako87

Description

@mako87

I'm testing the implementation of the keyword 'containsArray' in where clause.
Find subarray value in array field

'containsArray': function _containsArray(r, row, field, value) {
    return row(field).default([]).setIntersection(r.expr(value).default([])).count().eq(value.length);
 }
where: {
    tags: {
         containsArray: ['tag1','tag2']
     }
}

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions