Replies: 1 comment
-
a |
Beta Was this translation helpful? Give feedback.
0 replies
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.
-
Problem:
I am having trouble correlating events.
I have two events:
Event1
{
"Code": "E1-123",
"Name": "Event One"
}
Event2
{
"Code": "E2-456",
"Name": "Event Two",
"EventExample1Code": "E1-123"
}
I want to create a projection that reads both events and builds the following object:
Like it
ProjectionExample
{
"Event2Code": "E2-456",
"Event2Name": "Event Two",
"Event1Details": {
"Event1Code": "E1-123",
"Event1Name": "Event One"
}
}
Flow:
1. First, EventExample1 is dispatched.
2. Later, EventExample2 is dispatched.
⸻
Problem:
I am not able to correlate these events to create the final projection.
⸻
Question:
Can anyone help me with the best way to achieve this correlation?
Beta Was this translation helpful? Give feedback.
All reactions