Skip to content

Instantly share code, notes, and snippets.

@andreabalducci
Last active August 29, 2015 14:08
Show Gist options
  • Save andreabalducci/e820c11427112f989ffa to your computer and use it in GitHub Desktop.
Save andreabalducci/e820c11427112f989ffa to your computer and use it in GitHub Desktop.
NEvenstore: list events
db.Commits.aggregate([
{$sort: {_id:1}},
{$unwind : "$Events"},
{$project : { _id:1, StreamId:1, event: '$Events.Payload.Body._t', body : '$Events.Payload.Body'}},
])
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment