senecajs / seneca-mongo-store

Node.js Seneca data storage plugin for MongoDB
MIT License
35 stars 42 forks source link

ObjectId on sub-objects #51

Closed paflopes closed 8 years ago

paflopes commented 8 years ago

Hey everyone!

Is it possible to set an ObjectId to a sub-object besides using the native$ method? If I try to do that and use the save$ method, seneca throws a giant error on my face.

paflopes commented 8 years ago

Actually, the problem was with mongodb version. It should be the same used in the seneca-mongo-store which is the ^0.2.0. Now everything works like a charm.