Filter documents based on array size inside a root array element Mongodb
Hello, I'd like to get all the documents where categories array has an element with key CONSULTANT_AGREEMENT and the respective subCategories array inside the CONSULTANT_AGREEMENT category contains only one element. Is this possible in MongoDB or should I write a…