spring-data-mongodb
spring-data-mongodb copied to clipboard
Kindly add skipOutput functionality to @Meta for use with @Aggregation
Trying to run an Aggregation which has $out at the end. $out put outputs millions of records, the repository tires to map it and fails with a heap error. I don't need the output at all
We could determine the skipOutput flag from the method declaration in combination with whether the last stage is a $out stage. We don't need to update the @Meta annotation in consequence.