Skip to content

Commit c317124

Browse files
committed
update readme
1 parent f140c49 commit c317124

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

README.md

+7-2
Original file line numberDiff line numberDiff line change
@@ -485,8 +485,13 @@ skip, limit always optional
485485
// or
486486
var stream = es.streamEvents('streamId', skip, limit);
487487
// or by commitstamp
488-
var stream = es.streamEEventsSince(new Date(2015, 5, 23), skip, limit);
489-
488+
var stream = es.streamEventsSince(new Date(2015, 5, 23), skip, limit);
489+
// or by revision
490+
var stream = es.streamEventsByRevision({
491+
aggregateId: 'myAggregateId',
492+
aggregate: 'person',
493+
context: 'hr',
494+
});
490495

491496
stream.on('data', function(e) {
492497
doSomethingWithEvent(e);

0 commit comments

Comments
 (0)