Query on non empty object field having multiple keys or to check size of object greater than 1

Hi @Aamod_Pisat, Mongo stores json objects as bson, and so, the way to measure this value is using the key $bsonSize where the minimum size for an empty object is 5. Below is an example of…

{
    "$match": {
        "parameters_fields": {$gte: {$bsonSize: 5}},
//        "parameters_fields": {"$size": 1},
//        "parameters_fields": {$gte:  {"$size": 0}},
    }
}