You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
There was an error fetching records. Check out console to see more information
console log
TypeError: Cannot read properties of null (reading 'type')
at file:///path/to/project/node_modules/@adminjs/prisma/lib/utils/converters.js:28:88
at Array.reduce (<anonymous>)
at convertFilter (file:///path/to/project/node_modules/@adminjs/prisma/lib/utils/converters.js:27:36)
at Resource.find (file:///path/to/project/node_modules/@adminjs/prisma/lib/Resource.js:53:20)
at Object.handler (file:///path/to/project/node_modules/adminjs/lib/backend/actions/list/list-action.js:66:36)
at process.processTicksAndRejections (node:internal/process/task_queues:105:5)
reacted with thumbs up emojireacted with thumbs down emojireacted with laugh emojireacted with hooray emojireacted with confused emojireacted with heart emojireacted with rocket emojireacted with eyes emoji
-
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