Hopefully this is a basic question and I'm just be...
# prisma-whats-new
t
Hopefully this is a basic question and I'm just being thick. Trying to write a permission query that just makes it so a user can only update themselves:
Copy code
query ($user_id: ID!, $node_id: ID!) {
  SomeUserExists(filter:{
    id: $node_id
    id: $user_id
  })
}
That's obviously not a legal query, but I'm just try to say that the
$node_id
must be equal to the
$user_id
--am I on the right track?
n
yes, you're almost there!!
you're missing an "AND" operator
t
Ohhhhhhh, I actually just found the answer as you typed that 😄. Thanks!
💯 1
🎉 1
n
you're a champ :D