I cannot figure out what I’m doing wrong. This kind of queries used to work in the past (version 1.0.1)
I am running GetEventStore 2.0.1 with the following options
EventStore.SingleNode.exe --db my-path-to-db -t 1114 -h 2114 --run-projections=ALL
and am trying this simple ad-hoc query (I’m logged-in as admin)
fromStream(‘domainLog’)
.when({
$any: function (s, e){
if(e.eventType.indexOf(’$’) !== 0 && e.body.Id !==null && e.body.Id.Id.toString() === ‘032f06f3-acea-4664-ba2f-1ea49dc1de1a’){
linkTo(‘animal-121368’, e);
}
}
});
which results in an error “‘emit’ is not allowed by the projection/configuration/mode”
this is the snippet from the error log
[PID:05808:017 2014.01.13 16:25:41.195 ERROR ProjectionCoreServic] ‘emit’ is not allowed by the projection/configuration/mode
[PID:05808:014 2014.01.13 16:25:41.195 ERROR ProjectionManager ] The ‘caa1df93-32e0-4030-89a8-ac3ac8e7e358’ projection faulted due to ‘‘emit’ is not allowed by the projection/configuration/mode’
[PID:00420:017 2014.01.13 16:29:39.738 ERROR ProjectionCoreServic] ‘emit’ is not allowed by the projection/configuration/mode
[PID:00420:014 2014.01.13 16:29:39.743 ERROR ProjectionManager ] The ‘3476acbc-61bb-489d-9965-e0ef1082e0c3’ projection faulted due to ‘‘emit’ is not allowed by the projection/configuration/mode’
[PID:00420:017 2014.01.13 16:44:22.248 ERROR ProjectionCoreServic] ‘emit’ is not allowed by the projection/configuration/mode
[PID:00420:014 2014.01.13 16:44:22.248 ERROR ProjectionManager ] The ‘3476acbc-61bb-489d-9965-e0ef1082e0c3’ projection faulted due to ‘‘emit’ is not allowed by the projection/configuration/mode’
[PID:00420:017 2014.01.13 16:46:28.446 ERROR ProjectionCoreServic] ‘emit’ is not allowed by the projection/configuration/mode
[PID:00420:014 2014.01.13 16:46:28.446 ERROR ProjectionManager ] The ‘3476acbc-61bb-489d-9965-e0ef1082e0c3’ projection faulted due to ‘‘emit’ is not allowed by the projection/configuration/mode’