Skip to content

feat(server): exclude selected items from search

Duncan Bennett requested to merge 1511-server-side-search-exclude into develop

This is already supported by the use of "noteq" but this option gets a little clunky when many items are selected.

Adds "in" and "notin" search operators so that exclusion becomes as simple as passing an array. Eg: { field: "id", operator: { notin: [ "0c862f54-68a9-46c7-b229-dbe1e45f54b9", "b43075da-df5f-4965-8485-f1836c47db7d", "d37b5f18-b9bd-4b7b-b12f-bf0b22b37f0e" ] } }

Also adds "containsAll" and "containsNone" operators since they compliment "containsAny".

Adds unit tests for notin operator

Related #1511 (closed)

Merge request reports