Return generated id of fresh new aggregate. #329
Unanswered
grzybsonssg
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I have a case when I want to generate ID of aggregate in my service code. But then, somehow I need to return it to client, so it can further interact with that aggregate. Here is a simple example of what I need:
In such configuration, when I call
Handleon command service, it will returnCardState. SinceWhat should I do? I don't want the
CardIdto be generated by client itself. MaybeAggregateIdshould be accessible through aggregate / aggregate state? What am I missing?Beta Was this translation helpful? Give feedback.
All reactions