How to filter resource using indirect relation? #1738
Unanswered
whatuserever
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I have a Prisma schema where my admin has a list of containers, and each container has a list of items:
Prisma schema
How can I make sure the resource page for
Item
only shows items belonging to the current admin?I tried adding a filter using the
before
hook, but was unsuccessful:This shows an error in the app:
console log
Beta Was this translation helpful? Give feedback.
All reactions