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
Currently it's not possible to pass a JSON array as a query parameter. This is due to the following function in util.js
if (_.isString(value) && value[0] === '[') {
let arr = JSON.parse(value)
if (_.isArray(arr)) {
return arr
}
}
Per a discussion on the node-postgres issue board brianc/node-postgres#442 - since arrays were around before json the preferred approach is to use JSON.stirngify() if you want to pass an array. This works in sails-postgres but fails in this updated knex based adapter.
The text was updated successfully, but these errors were encountered:
Currently it's not possible to pass a JSON array as a query parameter. This is due to the following function in util.js
Per a discussion on the node-postgres issue board brianc/node-postgres#442 - since arrays were around before json the preferred approach is to use
JSON.stirngify()
if you want to pass an array. This works in sails-postgres but fails in this updated knex based adapter.The text was updated successfully, but these errors were encountered: