Skip to content
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

feat: Support filtering by poly components #1092

Merged
merged 2 commits into from
May 18, 2024

Conversation

stephenh
Copy link
Collaborator

Previously filters on poly fields could not see below the immediate poly id value.

This was because each poly component has fundamentally different types.

This PR adds support by just exposing each poly component as a dedicated key in the filter, i.e.:

em.find(Comment, { parentBook: { title: "b1" } });

Where Comment.parent is a poly of Author | Book, and previously we could only filter on parent: ...basic condition on the id....

@stephenh stephenh merged commit 2f76e62 into main May 18, 2024
5 checks passed
@stephenh stephenh deleted the feat-filter-by-poly-components branch May 18, 2024 01:36
stephenh pushed a commit that referenced this pull request May 18, 2024
# [1.166.0](v1.165.2...v1.166.0) (2024-05-18)

### Features

* Support filtering by poly components ([#1092](#1092)) ([2f76e62](2f76e62))
@stephenh
Copy link
Collaborator Author

🎉 This PR is included in version 1.166.0 🎉

The release is available on:

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant