Skip to content

fix: add relation query composition methods - #53

Merged
3m1n3nc3 merged 1 commit into
mainfrom
fix/relation-query-dynamics
Aug 22, 2026
Merged

fix: add relation query composition methods#53
3m1n3nc3 merged 1 commit into
mainfrom
fix/relation-query-dynamics

Conversation

@3m1n3nc3

Copy link
Copy Markdown
Member

Summary

  • Add query composition methods to the shared Relation base.
  • Support when, unless, tap, and pipe on relationships.
  • Add nested relationship constraints such as whereHas, has, and their OR, absence, and polymorphic variants.
  • Support callback and column/value forms of where and orWhere.
  • Add OR null predicates.
  • Make these capabilities available to MorphManyRelation and all other relation types.

Testing

  • 557 tests passed, 2 skipped.
  • Lint passed.
  • Formatting check passed.
  • Package and TypeScript declaration builds passed.

@3m1n3nc3
3m1n3nc3 merged commit e149f85 into main Aug 22, 2026
5 checks passed
@3m1n3nc3
3m1n3nc3 deleted the fix/relation-query-dynamics branch August 22, 2026 03:15
@codecov

codecov Bot commented Aug 22, 2026

Copy link
Copy Markdown

Codecov Report

❌ Patch coverage is 41.79104% with 39 lines in your changes missing coverage. Please review.

Files with missing lines Patch % Lines
src/relationship/Relation.ts 41.79% 39 Missing ⚠️

📢 Thoughts on this report? Let us know!

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.

1 participant