Skip to content

Add conditional return type to Builder::raw() #3395

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Jun 2, 2025

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
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.

2 participants