Skip to content

Conversation

paulinevos
Copy link
Collaborator

for both the Eloquent and the Query builder, so that developers can understand that the return type will either be a Collection or an Expression based on the argument that's passed to raw()

Checklist

  • Add tests and ensure they pass (not applicable)

@paulinevos paulinevos requested a review from a team as a code owner June 2, 2025 11:57
@paulinevos paulinevos requested a review from alcaeus June 2, 2025 11:57
for both the Eloquent and the Query builder, so that developers can
understand that the return type will either be a `Collection` or an
`Expression` based on the argument that's passed to `raw()`
@paulinevos paulinevos force-pushed the 348_conditional-return-types branch from 35f83bc to 0ffc6bf Compare June 2, 2025 13:35
@paulinevos paulinevos requested a review from alcaeus June 2, 2025 13:35
@paulinevos paulinevos merged commit 7ca536b into mongodb:5.x Jun 2, 2025
71 checks passed
@paulinevos paulinevos deleted the 348_conditional-return-types branch June 2, 2025 14:21
@GromNaN GromNaN added this to the 5.5 milestone Aug 28, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants