Kamva / mgm

Mongo Go Models (mgm) is a fast and simple MongoDB ODM for Go (based on official Mongo Go Driver)
Apache License 2.0
754 stars 63 forks source link

Support aggregate options #84

Closed trungdlp-wolffun closed 1 year ago

trungdlp-wolffun commented 1 year ago

I fixed issue #83,

Add some aggregate options.

PLEASE NOTE Break some functions:

Because stages is variadic parameter, I was change to slice and opts is new variadic parameter.

If this PR merged, please noted some break functions to release note.

mehran-prs commented 1 year ago

Hi @trungdlp-wolffun Thanks for your changes. As this is a breaking change, we should include them in our next released version of the library. But you can set your dependency on this library to the master branch to fetch the latest changes till we release the next version of the library. I hope this helps you!