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

Projection alias #123

Merged
merged 4 commits into from
Feb 14, 2022
Merged

Projection alias #123

merged 4 commits into from
Feb 14, 2022

Conversation

jakhog
Copy link
Contributor

@jakhog jakhog commented Feb 13, 2022

Summary

Adds aliases to Projections, in the same way we have for Event Handlers. They default to the name of the read model class, and can be overridden with a decorator option or a builder method.

Added

  • An optional alias property on the @projection decorator options.
  • A .withAlias method on the Projection builder API.

@jakhog jakhog added the minor label Feb 13, 2022
@woksin
Copy link
Contributor

woksin commented Feb 14, 2022

Just update the contracts and it's good to go :)

@woksin woksin marked this pull request as ready for review February 14, 2022 09:44
@woksin woksin merged commit 1601c5a into master Feb 14, 2022
@woksin woksin deleted the projection-alias branch February 14, 2022 09:49
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.

2 participants