Compiles a FilterSpec into a Prisma where object (plain JSON-serializable shape).
where
Operator mapping matches common Prisma filter APIs: eq → equals, string ops use mode: "insensitive", nin → notIn, arrayContains → has, isNull uses null / { not: null } per value, and isNotNull → { not: null }. Unsupported ops (between, arrayOverlaps, matches, custom) are omitted from the result.
eq
equals
mode: "insensitive"
nin
notIn
arrayContains
has
isNull
null
{ not: null }
value
isNotNull
between
arrayOverlaps
matches
custom
Top-level clause arrays are combined with AND. FilterGroup uses AND / OR to match group.logic.
AND
OR
group.logic
Compiles a FilterSpec into a Prisma
whereobject (plain JSON-serializable shape).Operator mapping matches common Prisma filter APIs:
eq→equals, string ops usemode: "insensitive",nin→notIn,arrayContains→has,isNullusesnull/{ not: null }pervalue, andisNotNull→{ not: null }. Unsupported ops (between,arrayOverlaps,matches,custom) are omitted from the result.Top-level clause arrays are combined with
AND. FilterGroup usesAND/ORto matchgroup.logic.