Skip to content

Mixing raw aggregation with eloquent query #3200

Answered by alcaeus
TranLong183 asked this question in Q&A

You must be logged in to vote

Raw aggregation and the new aggregation builder are not compatible with where(). As aggregation logic is purely specific to MongoDB and not supported by other databases supported by Eloquent, there is no reason for us to support where(). It could come in the future, but I can't guarantee it.

Also, if you're using version 4.3.0 or newer, you'll want to check out the Aggregation Builder, as it's a lot nicer to use than raw aggregations.

Replies: 1 comment 4 replies

You must be logged in to vote
4 replies
@TranLong183

@alcaeus

@TranLong183

@alcaeus

Answer selected by TranLong183
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants