In Mongo DB, I have a structure like this :
{
  "_id" : ObjectId("58cc95a68a7d830a708243fc"), //Hockey Pool
  "Name" : "Pool des gars",
  "Poolers" : null, // Pooler for that pool, null when pooler are in subgroups
  "PoolerGroups" : [{ // Pool group who contains Pooler
      "Name" : "Salon",
      "Code" : "SA",
      "Poolers" : [{ 
          "UserRight" : 1,
          "PoolerId" : ObjectId("583a2547499050b6c056c8a0"), // User id for 1 pooler
          "PlayersIds" : null // Try to find that pooler to update the PlayerIds list of that pooler
        }, {
          "UserRight" : 5,
          "PoolerId" : ObjectId("583a2547499050b6c056c8a2"),
          "PlayersIds" : null
        }, {
          "UserRight" : 1,
          "PoolerId" : ObjectId("583a2547499050b6c056c8a7"),
          "PlayersIds" : null
        }, {
          "UserRight" : 5,
          "PoolerId" : ObjectId("583a2547499050b6c056c8ac"),
          "PlayersIds" : null
        }, {
          "UserRight" : 1,
          "PoolerId" : ObjectId("583a2547499050b6c056c8ad"),
          "PlayersIds" : null
        }]
    }, {
      "Name" : "Cuisine",
      "Code" : "CU",
      "Poolers" : [{
          "UserRight" : 37,
          "PoolerId" : ObjectId("583a2547499050b6c056c8a1"),
          "PlayersIds" : null
        }, {
          "UserRight" : 1,
          "PoolerId" : ObjectId("583a2547499050b6c056c8a5"),
          "PlayersIds" : null
        }, {
          "UserRight" : 1,
          "PoolerId" : ObjectId("583a2547499050b6c056c8a9"),
          "PlayersIds" : null
        }, {
          "UserRight" : 1,
          "PoolerId" : ObjectId("583a2547499050b6c056c8aa"),
          "PlayersIds" : null
        }, {
          "UserRight" : 1,
          "PoolerId" : ObjectId("583a2547499050b6c056c8ab"),
          "PlayersIds" : null
        }]
    }, {
      "Name" : "Sous-sol",
      "Code" : "SS",
      "Poolers" : [{
          "UserRight" : 1,
          "PoolerId" : ObjectId("583a2547499050b6c056c8a3"),
          "PlayersIds" : null
        }, {
          "UserRight" : 1,
          "PoolerId" : ObjectId("583a2547499050b6c056c8a4"),
          "PlayersIds" : null
        }, {
          "UserRight" : 1,
          "PoolerId" : ObjectId("583a2547499050b6c056c8a6"),
          "PlayersIds" : null
        }, {
          "UserRight" : 1,
          "PoolerId" : ObjectId("583a2547499050b6c056c8a8"),
          "PlayersIds" : null
        }, {
          "UserRight" : 1,
          "PoolerId" : ObjectId("583a2547499050b6c056c8ae"),
          "PlayersIds" : null
        }]
    }]
}
I want a filter to get thoe Poolers with PoolerId = 583a2547499050b6c056c8a0, I don't find the correct syntax with Mongo. I tried various thing like :
{ "PoolerGroups.Poolers" : { PoolerId : "583a2547499050b6c056c8a0" }} or
{ "PoolerGroups.Poolers.PoolerId" : "583a2547499050b6c056c8a0" } or
{ "PoolerGroups.$.Poolers.$.PoolerId" : "583a2547499050b6c056c8a0" }
But everythings return nothing, does somebody know what is wrong? I need this to get a filter to update the PlayerIds list. I use c# driver with Mongo.
 
     
    