H2CO3 / avocado

Strongly-typed MongoDB driver for Rust
MIT License
81 stars 2 forks source link

Does aggregate operation supported in avocado? #10

Closed wotmshuaisi closed 4 years ago

H2CO3 commented 4 years ago

In what sense?

wotmshuaisi commented 4 years ago

operations like

db.test.aggregate([
    {
        $group: {
            _id: "id",
            infoArr: {$push: "$info"}
        }
    },
    {
        $project: {
            id: "$_id",
            infoArr: 1,
        }
    }
])
H2CO3 commented 4 years ago

Yes, Avocado doesn't actively hide anything that the underlying MongoDB driver allows one to do. Check out the docs.