Maybe the second thought would be a different topic, but I feel like I already made too many topics lol.
Another use case to make it simpler would be having a predicate userRole
that points to an enum and I want to do a SQL like IN(...)
operation. Yes I could do it long route with
...filter({userRole: {eq: SUBSCRIBER} or: {userRole: {eq: EDITOR}}}) ...
But if I had an array variable with those types in it, it would be easier to do:
...filter({userRole: {in: [SUBSCRIBER, EDITOR]}}) ...