I have an array in a mongodb collection and want to remove one element from it with the index, didnt found how to make it, or an operator for it...
document example:
{
"_id": "<someID>",
"array": [
{
"elemt": 1
},
{
"elemt": 2,
},
{
"elemt": 2,
}]
}
(duplicates can occur - and dont want to delete these duplicates)
and i want to achive that an element can be removed with the index of it...
Using:
- NodeJS 8.9
- Mongodb 3.4
- (npm) mongodb (native)
- Visual Studio 17