booster
booster copied to clipboard
Filter on projections joinKey
Description
Filter on projections joinKey
Changes
- Add tests
- Refactor readModelSearcher method
- Refactor packages/framework-core/src/decorators/projects.ts
- Update new decorator to accept functions
@Projects(SomeEntity, (someEntity: SomeEntity) => {
return {
id: {
eq: someEntity.id,
} as FilterFor<SomeReadModel>,
}
})
- Update
Projects
decorator to execute the function to filter
Checks
- [X] Project Builds
- [X] Project passes tests and checks
- [ ] Updated documentation accordingly
👇 Click on the image for a new way to code review
-
Make big changes easier — review code in small groups of related files
-
Know where to start — see the whole change at a glance
-
Take a code tour — explore the change with an interactive tour
-
Make comments and review — all fully sync’ed with github