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

EventMachine Aggregate Schema #21

Closed
codeliner opened this issue Jan 5, 2018 · 1 comment
Closed

EventMachine Aggregate Schema #21

codeliner opened this issue Jan 5, 2018 · 1 comment

Comments

@codeliner
Copy link
Member

codeliner commented Jan 5, 2018

  • Optionally pass JsonSchema of aggregate state when aggregate is described for first time
  • OR aggregate state implements JsonSchemaProvider (ImmutableRecord implements it by default, can be overridden)
    • Consider nullable properties
  • Index definition can also be passed as optional parameter or DocumentIndexProvider is implemented
  • JsonSchema is translated into GraphQL Schema to access aggregate state using GraphQL
  • Auto Schema Versioning by creating a diff of old and new schema OR using a commit tag?
@codeliner codeliner added this to To Do in Event Machine via automation Jan 5, 2018
@codeliner codeliner added this to the EM SDK 1.0 milestone Jan 5, 2018
@codeliner codeliner mentioned this issue Jan 5, 2018
2 tasks
@codeliner
Copy link
Member Author

Not needed anymore because aggregate state projections are also document projections and document query schema can be defined per aggregate.

Event Machine automation moved this from To Do to Done Jan 7, 2018
@codeliner codeliner removed this from the EM SDK 1.0 milestone Jan 7, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Event Machine
  
Done
Development

No branches or pull requests

1 participant