I don't know if this is intended but when I query all records from a table that has only two columns it returns and object with the first column been the key and the second the value. How can I make it so it return the it like the other tables.
Like this:
{ "1": "type/Padrão", "2": "Diferenciado", ... }
I don't know if this is intended but when I query all records from a table that has only two columns it returns and object with the first column been the key and the second the value. How can I make it so it return the it like the other tables.
Like this:
{ "1": "type/Padrão", "2": "Diferenciado", ... }
Instead of this:
{ ["id": 1, "name": "type/Padrão",] ["id": 2 , "name": "Diferenciado"], ... }