Strict updates?

115 views
Skip to first unread message

Scott Nelson

unread,
Jan 19, 2012, 1:55:15 PM1/19/12
to mongoo...@googlegroups.com
I have a strict schema but it seems to be ignored when performing updates.

i.e.

Mode.update({ _id: id }, { foo: 'bar' }, callback)

sets a `foo` attribute on the document even if it is not defined in the schema.

Bug?

Aaron Heckmann

unread,
Jan 27, 2012, 2:20:10 PM1/27/12
to mongoo...@googlegroups.com
thanks, just fixed it in master

--
http://mongoosejs.com
http://github.com/learnboost/mongoose
You received this message because you are subscribed to the Google
Groups "Mongoose Node.JS ORM" group.
To post to this group, send email to mongoo...@googlegroups.com
To unsubscribe from this group, send email to
mongoose-orm...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/mongoose-orm?hl=en



--
Aaron


Reply all
Reply to author
Forward
0 new messages