HeiHeShang | 16 Feb 14:21 2012
Picon

Can't find and updating

I'v next schema
Castomer = new Schema({
    'name': { type: String, index: true },
    'group':{type:Boolean},
    'icon':{type:String},
    'email':{type:String},
    'address':{type:String},
    'responsible':{type:String},
    'activity':{type:String},
    'inn': {type: String, index: true},
    'users': [Schema.ObjectId],
    'castomer_id': ObjectId,
    'child' : [Castomer]
  });

my data
{ _id: 4f2d495736343fbf5b000002,
  name: 'My',
  child:
   [ { users: [],
       child: [],
       _id: 4f2fe7676c4096255a000005,
       isGroup: 0,
       inn: '32432',
       name: 'dfgdf' },
     { users: [Object],
       child: [],
       _id: 4f390749c10c5bee12000009,
       activity: 'ewwer',
       responsible: 'апвапав',
(Continue reading)

Christian Kvalheim | 20 Feb 12:49 2012
Picon

Re: Can't find and updating

This is easier to get a question about at the mongoose forum


https://groups.google.com/forum/?fromgroups#!forum/mongoose-orm

or the irc channel on freenode

#mongoosejs

Cheers

--
You received this message because you are subscribed to the Google Groups "mongodb-user" group.
To view this discussion on the web visit https://groups.google.com/d/msg/mongodb-user/-/6-nZa00LbLAJ.
To post to this group, send email to mongodb-user-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org
To unsubscribe from this group, send email to mongodb-user+unsubscribe <at> googlegroups.com.
For more options, visit this group at http://groups.google.com/group/mongodb-user?hl=en.

Gmane