Skip to content

v2.1.0

Compare
Choose a tag to compare
@ddspog ddspog released this 09 May 14:30
· 24 commits to master since this release

Allow use of Safely operations

I've created a new method for Handle: Safely(). It will set property to true, which will trigger Handle.Close() after any collection operation within it.

Creating the Handler like the docs orient, will enable use of chaining:

usr, err := huser.New().SearchFor(mongo.M{"username": "myuser"}).Safely().Find()