what is the different beween every, some and none ...
# prisma-whats-new
p
what is the different beween every, some and none in query filter for For to-many relations?
✅ 1
w
@ppatidar if you are filtering a
User
with a
pets
relation.
every_pets has a tail
would mean "give me users where every pet that they own has a tail".
some_pets have a tail
would mean "Give me users that have a least one pet with a tail, and
none_pets have a tail
would mean give me users where none of their pets have a tail.
👍 2
p
Thanks 🙂