I have a similar problem since I upgraded Wappler to 5.4.0 and fixed it by adding output type to query:
“outputType”: “array”
Locate your custom query file and inspect the code, you should see something like this
{
"name": "custom",
"module": "dbupdater",
"action": "custom",
"options": {
"connection": "db",
"sql": {
"query": "SELECT LEFT(UUID(), 6) AS token",
"params": []
}
},
"output": false,
"meta": [
{
"name": "secret",
"type": "text"
}
],
"outputType": "array" ( code added )
},
I checked the projects not yet updated to version 5.4.0 and I noticed that the files generated with previous versions included in the query the output type “outputType”: “array”, while now it is omitted.
Maybe a very small bug.
I hope it can help you