Closed mc-arenas closed 11 months ago
Your code is incorrect:
const {userId} = request.payload ? request.payload['userId'].trim() : '0';
you're destructuring userId
property from a string instead of an object. It should work if you remove curly brackets.
Contact Details
No response
What happened?
Hello,
I'm facing an issue while trying to filter records using a findMany query in an AdminJS action handler. I'm using Prisma as my ORM. Here's a snippet of my code:
When I run this code, I encounter the following error: PrismaClientValidationError: Argument equals is missing. I tried modifying the query to include equals like so:
However, the error persists. The user_id field is defined as Int in my schema.prisma. I'm wondering if there's something with AdminJS that might be causing this issue or if it's a Prisma-related matter. Any insights or suggestions would be greatly appreciated.
Thank you!
Bug prevalence
always
AdminJS dependencies version
What browsers do you see the problem on?
No response
Relevant log output
No response
Relevant code that's giving you issues
No response