Join Slack
Powered by
Is there a way to filter based on the current user...
# prisma-whats-new
p
patrick
02/13/2018, 11:42 AM
Is there a way to filter based on the current user id in a query? (without passing it as a query parameter)
m
max
02/13/2018, 12:46 PM
are you using graphcool-framework? If so you can do
Copy code
{ user { id contentHere } }
max
02/13/2018, 12:46 PM
@patrick
max
02/13/2018, 12:47 PM
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
patrick
02/13/2018, 12:49 PM
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
Open in Slack
Previous
Next