You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.
I think _perform_aggregation could be modified with $facet to return a count value with the aggregation results. I know limitaions says that it's not the intended behaviour, however, I think it would be beneficial.
This modification would change the aggregate pipeline considerably, so maybe a config variable could be used to control this behaviour for those already hooking into "before_aggregation".
Am I missing anything obvious? Should I try implementing this and submitting a PR?
The text was updated successfully, but these errors were encountered:
I think _perform_aggregation could be modified with $facet to return a
count
value with the aggregation results. I know limitaions says that it's not the intended behaviour, however, I think it would be beneficial.Here's how I would consider implementing:
This modification would change the aggregate pipeline considerably, so maybe a
config
variable could be used to control this behaviour for those already hooking into "before_aggregation".Am I missing anything obvious? Should I try implementing this and submitting a PR?
The text was updated successfully, but these errors were encountered: