[COMPASS-6651] Can't filter documents by directly passing ObjectId to the input Created: 27/Mar/23  Updated: 29/Mar/23

Status: Open
Project: Compass
Component/s: None
Affects Version/s: None
Fix Version/s: None

Type: Bug Priority: Major - P3
Reporter: Sergey Petushkov Assignee: Unassigned
Resolution: Unresolved Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified
Environment:

OS:
node.js / npm versions:
Additional info:


Issue Links:
Depends
depends on NODE-5126 Find operations fail when passed an O... Closed

 Description   

Problem Statement/Rationale

Inserting ObjectId in the query input doesn't filter documents

Steps to Reproduce

Enter a valid ObjectId in the query bar filter input

Expected Results

Get filtered results from the server

Actual Results

Error:

Failed to parse: filter: ObjectId('...'). 'filter' field must be of BSON type object.

Additional Notes

Regression in driver, will go away when NODE-5126 is fixed and we update


Generated at Wed Feb 07 22:43:53 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.