getting started with projection..

Hi

I’m trying to write a very simple projection via the UI… But it just stops immediately when I try to start it… The chrome debugger has some seemingly unrelated error messages…

Failed to load resource: the server responded with a status of 404 (Not Found)

2js/app.min.js:2 SyntaxError: Unexpected token *

at Object.parse (native)

at U (http://127.0.0.1:2113/web/js/app.min.js:1:4907)

at l.defaults.transformResponse (http://127.0.0.1:2113/web/js/app.min.js:2:6566)

at http://127.0.0.1:2113/web/js/app.min.js:2:6239

at s (http://127.0.0.1:2113/web/js/app.min.js:1:1059)

at nn (http://127.0.0.1:2113/web/js/app.min.js:2:6247)

at t (http://127.0.0.1:2113/web/js/app.min.js:2:7056)

at l (http://127.0.0.1:2113/web/js/app.min.js:2:24089)

at http://127.0.0.1:2113/web/js/app.min.js:2:24261

at h.$eval (http://127.0.0.1:2113/web/js/app.min.js:2:31447)

http://127.0.0.1:2113/web//js/ace/worker-json.js Failed to load resource: the server responded with a status of 404 (Not Found)

Any suggestions?

The problem seems to be that my state object is always equal to “” even though I set a property on it:

fromAll()

.whenAny(function(s, e) {

s.Bla = “bla”;

return s;

}

);

query or projection? the query ui is a bit broken right now... what
happens as a projection (say one time)

Both actually. State is always equal to "". Even with an init function.

Is this on 3.0.1 or?

I know people are using this maybe they are using dev. I fixed a bug
related to this in esquery but its probably not the same thing.

@pieter have you fixed any bugs related to this in 3.0.1?

Greg

btw: you do have --run-projections=all?

It’s working now. Maybe because of a missing --run-projections=all (even though I did enable all projections via the ui…)
Or maybe because the latest version of my code works as a projection but not as a query, which caused some confusion…

Thank you for the help.

The --run-projections=all needs to be passed acros the command line to
use projections