-
-
Notifications
You must be signed in to change notification settings - Fork 2k
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(Entity): add removeMany by predicate #900
feat(Entity): add removeMany by predicate #900
Conversation
This looks great to me! I am going to label this at v6.x. We are in the middle of adding new infrastructure to support multiple versions in the same repo. Please don't be surprised if this takes some time to get merged. We have every intention of getting it into a release soon! |
@MikeRyanDev Should this change (and the update many from #907 - if approved) also be documented in the current docs? |
d75301a
to
6614500
Compare
@timdeschryver will you rebase this so it can land? |
6614500
to
fa04889
Compare
✔️ |
modules/entity/src/models.ts
Outdated
@@ -38,6 +38,10 @@ export type UpdateNum<T> = { | |||
|
|||
export type Update<T> = UpdateStr<T> | UpdateNum<T>; | |||
|
|||
export type Predicate<T> = { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Make this the same as export type ComparerStr<T> = (a: T, b: T) => string;
fa04889
to
c3aba9d
Compare
Check! |
This PR allows to remove entities based on a predicate.
See #672