globalsign / mgo

The MongoDB driver for Go
Other
1.97k stars 230 forks source link

Add Min/Max find options #201

Closed bozaro closed 6 years ago

bozaro commented 6 years ago

Add methods for set lower and upper bound for all keys of a specific index in order.

domodwyer commented 6 years ago

Hi @bozaro

Thanks for another great PR - would you mind including a test or two to verify the behaviour and we'll be happy to merge this.

Dom

bozaro commented 6 years ago

I added simple test for Min/Max methods.

domodwyer commented 6 years ago

Thanks @bozaro - it's really appreciated!

Dom

domodwyer commented 6 years ago

Hi @bozaro

I changed this to point to development to merge (we don't merge directly to master) and it's caused a couple conflicts - sorry!

Dom

bozaro commented 6 years ago

Rebased to development branch

domodwyer commented 6 years ago

Thanks for another clean PR @bozaro!