Hi there,
I’m working on a SpringBoot Java project, and I would like to update a document only on a certain condition :
{
factory: {
workers: ["String"],
testers: ["String"],
developpers: ["String"],
status : String
}
}
I would like to update the factory’s status only if the size of (developers + testers) equal or greater than workers size, is this possible using mongoOperations ? if so I believe I need to use aggregations right ? because according to this doc, aggregations are used only to sort data (I’m not familiare with them).