{
"frame1": 12,
"frame2": 39,
}
I have a collection called "df", where I want to delete the documents where one field value (frame1) is less than the average of another field value (frame2). However, I cannot achieve that. I have just managed to make an average of the second field like this I want to delete the documents where all the values of frame1 is less than the average of frame2. Can someone please help me?