Strixie
#1
Is there a way to setup a query in a transformer, with parameters, that will return a JS object?
pseudo code would look like,
let acmeResults = Search * where companyName is "acme";
Then able to use the object and check it, ie, acmeResults[0].companyPolicy, before deciding what to return in the transformer.
Tess
#2
Hi @Strixie
Welcome to the community!
You cannot run a query in a transformer. You can attach a transformer to any query though.
You can also trigger queries from a Javascript query using .trigger():
Do you think a Javascript query might work for your use case?