Hi guys, 1 question about graphcool filters, whats...
# prisma-whats-new
e
Hi guys, 1 question about graphcool filters, whats the difference between
every
and
some
, lets say we have a friends field and we filter like this
Copy code
friends_every: { id: $id }

OR

friends_some: {id: $id }
p
check out https://www.prismagraphql.com/docs/reference/prisma-api/queries-ahwee4zaey and scroll to the bottom ‘Relation filters’
to summarize,
some
is useful when specifying the minimum needed to match the filter criteria
e
as I understand
friends_every
should hit only the friends that have that id right? I am doing something like this { friends_every: {id: ""}} and it still retrieve all objects instead of none(because I am not specifying any id) and when I do { friends_some: {id: ""}} it doesnt return anything(as expected)
@peter thanks for help