Skip to content

MongoDB Bson types fix, first, and limit

Choose a tag to compare

@cbaker cbaker released this 12 Feb 19:30
· 10 commits to master since this release
3410f8b

A bug where MongoDB\BSON types would be casted to a string has been fixed.

first is now supported on the aggregate builder via Model::builder()->first()
Optionally you can pass in an array of fields to select to first if you aren't already projecting them.

limit is now support on the aggregate builder via Model::builder()->limit(10)->get()