Replies: 4 comments 5 replies
-
Hi José. To use these types you must use a custom query. You have 2 options on how to handle it 1. Use postgres' syntax to alias a fielde.g. SELECT personJson->>'email' as "Person_Email" FROM People` In this case, 2. Select the whole JSON / Array and use a transformer to mutate ite.g. SELECT personJson FROM People Transformer is for (let row of data) {
row.Person_Email = row.personJson.email;
}
return data; We might soon handle JSON more natively - i.e. in the |
Beta Was this translation helpful? Give feedback.
-
@jalberto Actually I just realised that we can also just select the whole column in the query SELECT personJson FROM People Then, in your bindings in the Handlebars: |
Beta Was this translation helpful? Give feedback.
-
@mjashanks sorry to drag up an old issue, but has there been any progress around this issue regarding native json/jsonb support for imported tables? Still seems to show up as object Object in the table imports/through |
Beta Was this translation helpful? Give feedback.
-
@mjashanks any updates on native json/jsonb support when working with external connected DBs like postgres? This is a must have for me as my whole application is using a jsonb column. |
Beta Was this translation helpful? Give feedback.
-
Hello,
I am exploring budibase to build a basic CRUD-admin panel for my Postgres DB, I use some jsonb and array columns to store random data.
Is it possible to read/write those data types safely in budibase? if so, which is the best way?
Beta Was this translation helpful? Give feedback.
All reactions