I’m trying to create a server connect that returns an object to be used in my page.
The object will be something like:
{ role: “admin”,
id: 1
}
I get the values from different database actions.
In the Response Action I only can set a Text, should I put the object on the text ?
Should I write it in plain json ? Or Js ? Or is there a way to do it in the wappler sc editor ?
Does the object schema will be available in the app connect side ?
You can use set value step for this.
Add this, and set its type to object. Then in the value part, create your json with required keys. In the value part of each key, just use binding from different queries etc.