Cloud code to return raw data instead { "result: wrapper

I need to be able top return directly { “myJson”: “value” } instead of { “result”: { “myJson”: “value” } }

I’ve got a webservice that I must use that I don’t own and it’s expecting a certain format and I can’t tell it to change.

How do I get cloud code to stop wrapping my response?

You can’t do that using cloud code functions but you can create a custom Express.js route in order to return in the format you prefer.