Skip to content

Support for some additional query Expressions #2376

Open
@hjardines

Description

@hjardines

Feature Request

MongoDB v3.2 introduced $arrayElemAt as an Aggregation expression (among many others), which is very useful to filter for Arrays of Embedded documents at a given position, typically "first" or "last".
Ref: https://docs.mongodb.com/manual/reference/operator/aggregation/arrayElemAt/

Then later MongoDB v3.6 introduced the ability of using the same "operators" for regular queries.
Quote: "The $expr allows the use of aggregation expressions within the query language."
Ref : https://docs.mongodb.com/manual/release-notes/3.6/

Q A
New Feature yes
RFC yes
BC Break no

Summary

I use Query Builder a lot, and prefer it a lot over the Aggregation Builder whenever is possible.

Is this something being looked upon on? Thanks a lot for all the hard work.

Metadata

Metadata

Assignees

No one assigned

    Labels

    FeatureHacktoberfestGood issue for participating in Hacktoberfest

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions