You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm storing an array of strings in a jsonb column and before I save it to the DB I have to JSON.stringify() the array. However, this isn't necessary when saving an object.
For example, in my model's create method, i have to look for the list and stringify it before creation
classModelName{staticasynccreate(model,postgresClient){if(model.someList)model.someList=JSON.stringify(model.someList)// I would like to avoid this ^constsaved=awaitModelName.objects.connection(postgresClient).create(snakeCaseKeys(model))
I'm storing an array of strings in a jsonb column and before I save it to the DB I have to JSON.stringify() the array. However, this isn't necessary when saving an object.
For example, in my model's create method, i have to look for the list and stringify it before creation
My SQL table looks like
In my model I have
and in my handler decorator I have
The text was updated successfully, but these errors were encountered: