We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Knex version:2.3.0 Database + version:pg14 OS:MacOS 12.3.1
Array is legal as top-level JSON-text, but I get an error when inserting an array into a JSON column:
await knex.schema.createTable('test', table => { table.increments('id').primary() table.jsonb('data') }) // insert failed await knex('test').insert({ id: '1000', data: [ { address: '123 Main St', city: 'Anytown', state: 'CA', zip: '12345' }, { address: '456 Main St', city: 'Anytown', state: 'CA', zip: '12345' } ] }) // insert successfully await knex('test').insert({ id: '1001', data: { address: '123 Main St', city: 'Anytown', state: 'CA', zip: '12345' } })
The text was updated successfully, but these errors were encountered:
PR: #5321
Sorry, something went wrong.
No branches or pull requests
Environment
Knex version:2.3.0
Database + version:pg14
OS:MacOS 12.3.1
Bug
Array is legal as top-level JSON-text, but I get an error when inserting an array into a JSON column:
The text was updated successfully, but these errors were encountered: