Meteor-Community-Packages / meteor-collection-hooks

Meteor Collection Hooks
https://atmospherejs.com/matb33/collection-hooks
MIT License
657 stars 92 forks source link

collection.direct.insert with collection2 / collection.direct inserts mongo style ObjectId #90

Closed copleykj closed 9 years ago

copleykj commented 9 years ago

Using collection.direct.insert with collection2 and it seems that it is completely bypassing collection2 functionality. Not sure if this is intended behavior but would be nice to just skip the hooks and still have collection2 do validation.

Also when inspecting the record inserted with the direct functionality the record had an ObjectId instead of the string style ID that meteor uses which would lead to a mixed _id type for the collection.

matb33 commented 9 years ago

This may be the same issue as in #89

matb33 commented 9 years ago

Should be fixed (let me know if it isn't)