Hi I've got such kind of structure. here is an example
{
"_id" : "423dswar23ew2355",
"competitions" : [
"24",
"58",
"354",
"361"
],
}
How I can delete for example "58" item from "competitions" array.
I've seen some kind of solution like
{ $pull: { competitions: { $eq: "58" }}}
But my mongo says thar
MongoError: unknown top level operator: $eq
So can anybody come up with some more simple but at the same time working solution. Thanks in advance