Is there a way to filter based on the current user...
# prisma-whats-new
p
Is there a way to filter based on the current user id in a query? (without passing it as a query parameter)
m
are you using graphcool-framework? If so you can do
Copy code
{
  user {
   id
   contentHere
 }
}
@patrick
it's not idea but I nest all the way down to the item I need. Might be better to pass in the userId
p
thanks @max, I’ve reversed my query to fetch from the current user, then filtered by id on the other entity I was looking for
👍 1