Join Slack
Powered by
Hi, does anyone know how to make 2 level nested qu...
# orm-help
l
Leonardo
03/06/2019, 8:21 PM
Hi, does anyone know how to make 2 level nested queries in prisma client?, I'm trying to make a query like: prisma.user({userId}).sentOpinions().toUser().userId But the only thing that works is: prisma.user({userId}).sentOpinions()
b
bamne123
03/14/2019, 11:28 AM
You will have to use fragment
bamne123
03/14/2019, 11:29 AM
https://github.com/prisma/rfcs/blob/new-ts-client-rfc/text/0000-new-ts-client.md
4
Views
Open in Slack
Previous
Next