-
Notifications
You must be signed in to change notification settings - Fork 32
Open
Description
Issue
The find tool doesn't convert string values to ObjectId instances when querying MongoDB, causing queries on ID fields to return no results.
Current Behavior
- String values in filter fields are not converted to MongoDB ObjectId instances
- This affects any fields ending in "Id" or "_id" in queries
- Queries using these fields return empty results even when matching documents exist
Expected Behavior
The find tool should automatically detect and convert string values that match the ObjectId format (24-character hex) in ID fields to proper MongoDB ObjectId instances.
Suggested Solution
Add automatic conversion for string values in fields ending with "Id" or "_id" that match the ObjectId format.
Metadata
Metadata
Assignees
Labels
No labels