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
{{ message }}
This repository was archived by the owner on Aug 10, 2024. It is now read-only.
zooDbContext.Employees .FirstOrDefault(e => e.FirstName == "xx") will retrieve all records from employees collection in mongodb.
Reproduce step:
Open mongo shell and use the command "db.setProfilingLevel(2)" to open the query profiler.
Execute zooDbContext.Employees .FirstOrDefault(e => e.FirstName == "xx") in test case.
Use db.system.profile.find().sort({$natural:-1}) to view the profiler data.
From the profiler data, we can see there is no filter or pipeline in the command.