This repository has been archived by the owner on Sep 2, 2022. It is now read-only.
Nested Filtering with prisma-bindings #5073
Labels
status/stale
Marked as state by the GitHub stalebot
I've working on a food order platform and I would like to query all the added dishes (cartitems) inside a customers cart from a given restaurant.
My datamodel looks like this:
I can query the data inside the playground area with the following query
But I can't figure out how to do this nested filter with the prisma client.
Tried some things
The first one returns an error "Field "cart" is not defined by type CustomerWhereUniqueInput".
The last two are returning every cartItem from the customer.
Someone can help me out with this?
The text was updated successfully, but these errors were encountered: