You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
The text was updated successfully, but these errors were encountered:
aboveaboutbelow
changed the title
find tool fails to handle ObjectId fields in queries
find tool doesn't handle ObjectId fields correctly
Jan 9, 2025
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
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.
The text was updated successfully, but these errors were encountered: