I need to get a nested object within a certain document (searched by user ID) that also has an object inside of it (there's no guarantee that this object will be the same object).

I have the User model to be:

```
const mongoose = require('mongoose');
const { bool } = require('@hapi/joi');

const monitoringSchema = new mongoose.Schema({
    type: Object,
    default: {}
})

const hubSchema = new mongoose.Schema({
    hubID: {
        type: String,
        default: ""
    },
    isSetup: {
        type: Boolean,
        default: false
    },
    monitoring: {
        type: monitoringSchema
    }
}, {strict:false})

const finalUserSchema = new mongoose.Schema({
    username: {
        type: String,
        required: true,
        max: 255
    },
    email: {
        type: String,
        required: true,
        max: 255,
    },
    password: {
        type: String,
        required: true,
        min: 10,
        max: 1024,
    },
    date: {
        type: Date,
        default: Date.now
    },
    isVerified: {
        type: Boolean,
        default: false
    },
    hub: {
        type: hubSchema
    }
},  {strict:false});

module.exports = mongoose.model('User', finalUserSchema);

```

OR It has the layout:

```
_id: "id"
isVerified: true
username: "nathan"
email: "email@email.com"
hub:
    hubID: "id"
    monitoring: // WHOLE OBJECT I NEED TO RETREIVE
        exampleObject: 
            exampleValue: exampleKey

```

I have an array of user IDs I need to update and I tried the query:

```
for(i in usersToUpdate){
        User.findOne({_id: usersToUpdate[i], "hub.monitoring": {}}, {}, callbackResponse);
        function callbackResponse(err, data){
            if(err) return console.log(err)
            console.log(data)
        }
    }

```

But it returns `null` as the data so obviously the query is wrong. I know the error is:

```
{_id: usersToUpdate[i], "hub.monitoring": {}}

```

more specifically:

```
"hub.monitoring": {}

```

I'm using `{}` to reference an object within monitoring, what's the correct reference to reference an unknown object and get it's values back, like a wildcard? I've tried:

```
 {_id: usersToUpdate[i], "hub.monitoring": Object}

```

and it still doesn't work. I've seen [this answer](https://stackoverflow.com/a/33253717/12647189), however they reference a value that they already know, like a name?