PMXBOT Log file Viewer

Help | Karma | Search:

#mongodb logs for Thursday the 27th of December, 2018

(Back to #mongodb overview) (Back to channel listing) (Animate logs)
[14:50:46] <pagios> { $addToSet: {pub pubId, Keys: Key } },{new: true}) <-- works, but i cant do Keys: { pub: pubName, Key: Key } why?
[14:52:22] <pagios> cant keys be a json?
[14:56:26] <pagios> anyone?
[15:02:10] <pagios> so here is what i want to do, i would like to find and remove a Field in an array at positionX from a given collenction, and i would like to remove another field at the same position, how can i do this?
[15:02:28] <pagios> mainly i want to get the index position of field 1 , and use it to remove field 2 at that same index
[15:05:36] <pagios> example: i have "field1" : [ 'a' , 'b' , 'c' ] , field2: [ 1 , 2 ,3 ] , now say i want to remove b , i would like to remove 'b' and 2 as they are both on index 1
[15:05:52] <pagios> how is this possible in 1 shot?
[15:16:56] <pagios> { $addToSet: {pu: pId, strKeys: {a: 'a' , b: strKey } } <- whats wrong?