How to Use Firebase Update Document Template to Add an Element to a List Without Errors?

This topic was automatically generated from Slack. You can find the original thread here.

Hi, I want to use the Firebase update document template to add an element to a list. So I’m using that as a custom expression and using the following JSON, but I’m getting errors and the errors I’m getting back aren’t providing me a way to debug it:

The error suggests that the custom expression is a string, but it implies it’s an object

So I think the Data field needs the double brackets to make sure it’s evaluated as JavaScript

{{ { hello: "world" } }}

Otherwise the result will be a string of:

'{ hello: "world" }'