I want to set a value as a mongodb array key.
my value for is
var value = "arrayKey"
and i want to update a mongodb collection and set this value as a key.
collection.update(
{
"schraenke.name": schrank.name
},
{
$push: {
value: {
"test": test
},
}
}
});
When i try it the key is value and not "arraKey".