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 operation returns the documents that have zipcode equal to 63109 and projects the students array using $elemMatch, so it will contain the first item that match project or don't include this array at all:
MongoDB has the ability to specify the second parameter to
find()
function, which allows making a projection of result, by modifying it.For example:
The operation returns the documents that have zipcode equal to 63109 and projects the
students
array using $elemMatch, so it will contain the first item that match project or don't include this array at all:Also it is possible to use
$
,$slice
,1
and0
operatorsWe should make it possible to use this with Array.map, so buildFilter will also can return a mapper.
The text was updated successfully, but these errors were encountered: