Skip to content

Fix for search by _id #8

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 4 commits into
base: master
Choose a base branch
from
Open

Conversation

nemanjan00
Copy link

No description provided.

@alwint3r
Copy link
Member

alwint3r commented Jun 24, 2019

I think this is not a clean way to handle convert the search value for _id that has ObjectID type.

Alternatively, you can add a check whether the value complies with ObjectID format, then you can convert the string to ObjectID object and then return it from function parseSearchValue at lib/column.js file.

@nemanjan00
Copy link
Author

What if value is in ObjectID format, but, is not ObjectID, but string?

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.

2 participants