I am accessing MongoDB documents with a node.js web-front-end while in developement.
I got now following document:
{
"_id": ObjectID("500abe6a25dff13c7c000001")
, "username": "kyogron"
, "email": "kyogron@example.de"
, "contacts": [ObjectID("500abe6a2543213c7c000002")] // this should contain other user's id
}
I now want to add another user_id to the contacts array manually, before implementing the feature in the front-end.
As you see above I alread tried this using the ObjectID keyword but this didn't work...