go-bongo / bongo

Go ODM for MongoDB
MIT License
486 stars 40 forks source link

The FindOne example in README is incorrect. #21

Closed elsonwu closed 7 years ago

elsonwu commented 7 years ago

In README document: err := connection.Collection("people").FindOne(bson.M{"firstName":"Bob"})

Should be: err := connection.Collection("people").FindOne(bson.M{"firstName":"Bob"}, person)

securingsincity commented 7 years ago

Nice catch @elsonwu