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
-
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
Handle
on command service, it will returnCardState
. SinceWhat should I do? I don't want the
CardId
to be generated by client itself. MaybeAggregateId
should be accessible through aggregate / aggregate state? What am I missing?Beta Was this translation helpful? Give feedback.
All reactions