JackAdams / meteor-transactions

App level transactions for Meteor + Mongo
http://transactions.taonova.com/
MIT License
113 stars 16 forks source link

insert with tx:true returns true instead of the inserted object's _id #26

Closed edmyersjr closed 9 years ago

edmyersjr commented 9 years ago

calling collection.insert(object, {tx:true}) returns true. The default behavior of the insert function is to return the id of the inserted object which is useful for chaining events dependent on the stored object's id. Is returning true the intended behavior, or is there another preferred way to retrieve the inserted item's id?

edmyersjr commented 9 years ago

Nevermind, I just discovered the instant parameter. Guess I should have finished reading the docs first.