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 ran the test suite with the last knex and bookshelf versions and it seems no support for parsing JSON columns has been added yet. Did you try to do something like this?
Hmm, you're using JSON arrays and knex explicitly says:
Note that when setting an array (or a value that could be an array) as the value of a json or jsonb column, you should use JSON.stringify() to convert your value to a string prior to passing it to the query builder, e.g.
knex.table('users')
.where({id: 1})
.update({json_data: JSON.stringify(mightBeAnArray)});
This is because postgresql has a native array type which uses a syntax incompatible with json; knex has no way of knowing which syntax to use, and calling JSON.stringify() forces json-style syntax.
Ok then, your plugin differs in that it supports JSON arrays.
Today I tested bookshelf with Postgres JSON column without this plugin and it works.
What for is this plugin then?
The text was updated successfully, but these errors were encountered: