--
--
http://mongoosejs.com - docs
http://plugins.mongoosejs.com - plugins search
http://github.com/learnboost/mongoose - source code
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
Hi,
OK thanks for the response!
Merc.
On Tue, Dec 18, 2012 at 7:00 AM, Aaron Heckmann
<aaron.h...@gmail.com> wrote:
> Yeah I think your logic is sound. And yes, its not easy. Keep in mind it
> took four iterations just to get the current update logic working with
> casting.
>
> If you make some progress, open a pull request and we can review/provide
> pointers.
>
>
> On Sun, Dec 16, 2012 at 6:35 PM, Tony Mobily <tonym...@gmail.com> wrote:
>>
>> Hi,
>>
>> While this seems trivial at first... well it's not. At all.
>> When saving, it's easy to find out what validator to run on what field,
>> because you have the object right there in front of you: you just go through
>> every single property, and therefore have the full path there ready to go --
>> pronto.
>>
>> It's not so easy with updates. The biggest challenge is to figure out the
>> paths of the objects that are about to be updated.
>>
>> Mongoose wisely adds a nice $set to the update queries. So, it's basically
>> a matter of checking what you are about to set. But!
>>
>> * The user might be using positioning operators. For example, { $set: {
>> 'users.$.email...@email.com } }. In this case, it *looks* like I can
My last message was clear as mud...
Ignore if you cannot follow it. I will work on it more tomorrow and possibly provide some semi working code to review.
I did 10 hours straight today, I think I am getting too hold for this sort of thing... :)
Merc.
Merc.
--
--
http://mongoosejs.com - docs
http://plugins.mongoosejs.com - plugins search
http://github.com/learnboost/mongoose - source code
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