I can't seem to create a JSON object in a server action?

Hi,

I can’t seem to create a JSON object variable inside a server action. How to I put “city” inside “data”?

The “Data Type” reverts to “Text” if I click away and save (and schema defined in “Define Schema” is lost too).

Thanks buddies!

P.S.: NodeJS

Edit: The end goal is to pass this “data” object to the view (as Server Side Data)

Community Page
Last updated: