Group Group Group Group Group Group Group Group Group

Saving array postgres error

i have this model :
image
but i sent to server and catch this error
**[WARNING] [PostgreSQL] Could not determine PostgreSQL array data type: Array[ModelItem]

please help take a look @0xtim?

@choi the main reason is that you can’t just save an array of models in the database without some help. How are you expecting it to appear in the database? Do you have a table to ModelItem that you want to populate?

I have a table ModelItem
Yes, the main reason is server cant read a json body with array sent from client , when i try fake data array from server it work OK.

it can save it to database.
image

how can i read json suport array from client sent to server ?
image

Solved , hope this help for someone meet this issue

1 Like