Skip to Content
0
Jan 14, 2022 at 10:33 PM

CAP: run cql queries in custom endpoints

558 Views

Hi everyone,

I have a problem with run cql queries in custom endpoints in a muntitenant scenario, I followed the next example for create a custom endpoints to response in json format, works fine in an single tenant scenario, but when I tried take it a multitenant I got the next error:

There is no instance for tenant "anonymous"

I tried with the instructions cds.run() and tx.run() but none worked for me.

I would appreciate if someone could help me