⚠ This page is served via a proxy. Original site: https://github.com
This service does not collect credentials or authentication data.
Skip to content

fix: id filtering crash by adding MongoDB ObjectIDs support in convertFilter function#55

Open
melifetaji wants to merge 1 commit intoSoftwareBrothers:mainfrom
melifetaji:main
Open

fix: id filtering crash by adding MongoDB ObjectIDs support in convertFilter function#55
melifetaji wants to merge 1 commit intoSoftwareBrothers:mainfrom
melifetaji:main

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