Good Morning,
I have a Issue With MongoDb, i'm trying to unset an index of "citations", on my Json you can see 1 field citations with 2 citation : "Saisir ou Selection une citations" and "XD", i'd like to unset XD, how can i achieve this ?
{
"_id" : ObjectId("604ca13de0059b65e4e67c01"),
"username" : "LOL",
"pass" : "LOL",
"citations" : [
[
{
"body" : "Saisir ou Selection une citations",
"author" : "author",
"oeuvre" : "oeuvre",
"annee" : NumberInt(1)
}
],
[
{
"body" : "XD",
"author" : "XD",
"oeuvre" : "XD",
"annee" : NumberInt(3)
}
]
]
}
I've tried Many things :
db.getCollection("Users").update(
{}, {$unset : {"citations.$.body" : "XD"}}
)
and I tried many other variant but i didnt found the right Solution.
PS :
I'm working on a C# Wpf APP, it's would be perfect if you can help me on this langage but otherwise no worries it is not very different