thenativeweb / node-eventstore

EventStore Implementation in node.js
http://eventstore.js.org/
MIT License
538 stars 117 forks source link

getEventByRevision for mongodb and tingodb #159

Closed robinfehr closed 4 years ago

robinfehr commented 4 years ago

haven't updated the readme due to not having it implemented for all db's yet.

adrai commented 4 years ago

alternative:

es.getEventStream(query, revMin, revMax, (err, stream) => {
  stream.events[0]
})
susannaroden commented 4 years ago

Hey everyone 👋

New maintainer here… we, i.e. @thenativeweb, have taken over the responsibility to maintain this module from @adrai, and I would like to give a little update on this PR:

As Adriano already pointed out this can easily be done using the getEventStream function, so introducing a new function for a pretty specific special case is probably not the way to go. Besides, this PR is unfortunately incomplete and lacks any update for the documentation, hence I am going to close this one.