-
Type: Bug
-
Resolution: Fixed
-
Priority: Major - P3
-
Affects Version/s: None
-
Component/s: Playgrounds
-
None
-
Environment:OS:
node.js / npm versions:
Additional info:
-
3
-
Iteration Xantic Sargo
-
Not Needed
Problem Statement/Rationale
What is going wrong? What action would you like the Engineering team to take?
Please be sure to attach relevant logs with any sensitive data redacted.
Field completion does not work for collections specified using the bracket notation.
Steps to Reproduce
How could an engineer replicate the issue you’re reporting?
Connect to a cluster and in the default playground trigger completion inside the `find` object.
use('mongodbVSCodePlaygroundDB'); db['sales'].find({ p});
Expected Results
What do you expect to happen?
The price field is suggested.
Actual Results
What do you observe is happening?
No collection fields are suggested.
Additional Notes
Any additional information that may be useful to include.
If you try the same collection but written using the dot notation the field completion works as expected.
use('mongodbVSCodePlaygroundDB');
db.sales.find({});