Unable to pass JSON array to PostgreSQL function jsonb[] parameter using execute raw SQL
When I run the following query I get the error
PostgresError: malformed array literal: "[{"data":"test batch message 1"},{"data":"test batch message 2"}]
1 Reply
I've actually just found a solution after much trial and error by defining my own
pgArray
function that converts an array into the right format but it feels clumsy and should I expect Drizzle to be able to do this under the covers?