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?
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?