First of all, thanks for your work on this library, We started to use it in lichess.org and it's just wonderful to use.
I just wonder how to use $addFields aggregation with mongo4cats. I see that We support some similar operation like unwind, replaceWith but not addFields.
I can create Document, Bson by my own, but I couldn't find a way to create an Aggregate our of them.
So, imho, We could solve this by two ways:
- support
$addFields and some other missing aggregations out of the box
- support a way to construct aggration from
org.boson.Bson or BsonValue.
I'm willing to create a PR if you think it's a good idea?
First of all, thanks for your work on this library, We started to use it in lichess.org and it's just wonderful to use.
I just wonder how to use
$addFieldsaggregation with mongo4cats. I see that We support some similar operation likeunwind,replaceWithbut notaddFields.I can create
Document,Bsonby my own, but I couldn't find a way to create anAggregateour of them.So, imho, We could solve this by two ways:
$addFieldsand some other missing aggregations out of the boxorg.boson.BsonorBsonValue.I'm willing to create a PR if you think it's a good idea?