Skip to content

Conversation

melifetaji
Copy link

This pull request resolves a runtime crash issue in the convertFilter function within the adminJS-prisma adapter when filtering by MongoDB ObjectIDs. The existing implementation supported UUIDs for ID fields, but did not handle MongoDB ObjectIDs, leading to errors (panic in Prisma Query Engine). The changes introduced include:

  • Extending the existing ID filtering logic to recognize and correctly process MongoDB ObjectIDs using a direct match approach (equals operator), ensuring compatibility and preventing crashes.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant