Monday 19 December 2016

ObjectionJS and Knex question

I was wondering if anyone has used two libraries and then tried to use the .update() method on an objection model and updated that record with an null value. Through my testing, the queryBuilder just ignores null and empty strings (" ") (data being pushed into "bindings" array). This won't allow updating records with null values. I can do this with an insert and I can do it with knex but I would like to run this through the model. Anyone ever run into this before?

Submitted December 19, 2016 at 07:45PM by maxwellsmart84

No comments:

Post a Comment