Hello, I try to create sample projection, which should return last value from TestEvent - https://gist.github.com/3738176
I try add projection with following code:
fromStream(‘test’).whenAny(function(state, event) { return event.body; });
but it ends with “Error: Handler must return string data”
I don’t know how to post string data, because Event.Data is byte[]. Is it possible to post string data from c#?
Thanks
PS: I also note, that when I create new projection from webgui, it don’t use given name, but use some guid.