Also, you can add several items in the array field using the $pushAll operator:
var object = {
$pushAll: {
myFieldName: [ "item-here", "", ... ]
}
};
Or, add an item only if it does not exist, using the $addToSet operator:
var object= {
$addToSet: {
myFieldName: "item-id-here"
}
};
Please, let us know if this answers your question.
Regards,
Anton Dobrev
Telerik
Everlive is now Telerik Backend Services, and is part of the Telerik Platform. For more information on the new name, and to learn more about the Platform, register for the free online keynote and webinar on Wednesday, February 12, 2014 at 11:00 a.m. ET (8:00 a.m. PT)
0
Accepted
Anton Dobrev
Telerik team
answered on 13 Feb 2014, 02:33 PM
Hello,
Just to mention that the 'MasterKey' of your app should not be exposed on the client-side or distributed with your app.
Instead, a header authenticating the current user must be used in the client code:
Everlive is now Telerik Backend Services, and is part of the Telerik Platform. For more information on the new name, and to learn more about the Platform, register for the free online keynote and webinar on Wednesday, February 12, 2014 at 11:00 a.m. ET (8:00 a.m. PT)