Last active
July 25, 2018 08:25
-
-
Save mattwagl/268cfe3f5e483188d7a3f1386451af90 to your computer and use it in GitHub Desktop.
Simple wolkenkit readModel.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const projections = { | |
'collaboration.board.mounted' (boards, event) { | |
boards.add({ | |
title: event.data.title, | |
slug: event.data.slug, | |
timestamp: event.metadata.timestamp | |
}); | |
} | |
}; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment