The field ‘idFields’ must be an accumulator object
I am trying to use Spring Data Mongo to take the average of some fields in a collection of documents. I have a pipeline that searches via at Atlas search and then a group stage that performs the average.