carbon-io / carbond

MIT License
2 stars 5 forks source link

Add getCollection into MongoDBCollection #288

Closed tfogo closed 6 years ago

tfogo commented 6 years ago

It's a convenience method we use so regularly I think it should be defined on the class.

Thoughts?

willshulman commented 6 years ago

Agreed. @greg you see any reason not to do this?

gregbanks commented 6 years ago

@willshulman @tfogo i was thinking it might be better to change MongoDBCollection.collection to MongoDBCollection.collectionName and then initialize MongoDBCollection.collection to be the actual mongo collection object. thoughts?

tfogo commented 6 years ago

@gregbanks I like that.

willshulman commented 6 years ago

I like that too.

gregbanks commented 6 years ago

315 🤳