booster icon indicating copy to clipboard operation
booster copied to clipboard

Filter on projections joinKey

Open gonzalojaubert opened this issue 2 years ago • 1 comments

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

gonzalojaubert avatar Sep 06 '22 14:09 gonzalojaubert

👇 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

    Try it now!

Review these changes using an interactive CodeSee Map

Legend

CodeSee Map Legend

ghost avatar Sep 06 '22 14:09 ghost