negateGroupPredicates

Function

Helper function that locates group predicates and "negates" them so we get a query that is not in groups ... vs in groups ...

Parameters

Parameter Type Default Notes
query Required IQuery

Returns

Property Type Notes
filters IFilter[]

Filters that make up the query

targetEntity EntityType

What entity is this query targeting. This is used internally to ensure we query the correct API

properties Optional Record<stringany>

Additional properties. Useful for groupMember queries where we need to send in the groupId to construct the url


Function defined in common/src/search/negateGroupPredicates.ts:10