Friday, February 20, 2015

How to count event number in one stream?

fromStream("streamName")
   .when({
        $init: function() {
           return { count: 0 }
        },
        $any : function(s,e) { return s + 1;}
  })

No comments:

Post a Comment