error: update "public"."s_routes" set "name" = $1, "from" = $2, "stop" = $3, "to" = $4, "effective_date" = $5, "id" = $6, "arr" = $7, "arr_text"."0" = $8, "arr_text"."1" = $9, "arr_text" = $10 where "id" = $11 - cannot assign to field "0" of column "arr_text" because its type text[] is not a composite type
at Parser.parseErrorMessage (/Users/anthony/Downloads/HTML/AdminJS/node_modules/pg-protocol/dist/parser.js:283:98)
at Parser.handlePacket (/Users/anthony/Downloads/HTML/AdminJS/node_modules/pg-protocol/dist/parser.js:122:29)
at Parser.parse (/Users/anthony/Downloads/HTML/AdminJS/node_modules/pg-protocol/dist/parser.js:35:38)
at Socket.<anonymous> (/Users/anthony/Downloads/HTML/AdminJS/node_modules/pg-protocol/dist/index.js:11:42)
at Socket.emit (node:events:518:28)
at addChunk (node:internal/streams/readable:559:12)
at readableAddChunkPushByteMode (node:internal/streams/readable:510:3)
at Readable.push (node:internal/streams/readable:390:5)
at TCP.onStreamRead (node:internal/stream_base_commons:190:23)
Contact Details
No response
What happened?
It's ok to show array of object via type:mixed. But it's not ok to update json element in the array Many thanks
Bug prevalence
always right now
AdminJS dependencies version
"dependencies": { "@adminjs/express": "^6.1.0", "@adminjs/sql": "^2.2.6", "adminjs": "^7.8.7", "connect-pg-simple": "^9.0.1", "express": "^4.19.2", "express-formidable": "^1.2.0", "express-session": "^1.18.0", "tslib": "^2.6.3" },
What browsers do you see the problem on?
No response
Relevant log output
Relevant code that's giving you issues