Basil Siddiqui
Basil Siddiqui
@wincent think we can get this merged?
@edumudu you're welcome to make a PR!
@JavaZakariae what autocomplete utility?
@stockmind @KendraArb if this is something that would help you you definitely can make a PR to update the version of Joi used as a dep
@MucaInera not currently but I'm open to adding the feature
That makes sense. It'll be a breaking change so I'll need work it into a major relase
@machinshin are you experiencing the same issue?
Yeah the way upsert is currently written doesn't allow for bulk upserts because it internally uses `Model.findOne` so you'll at most get one model back. 1. First issue, the error:...
@Saeris if you want to update if there's only 1 row, then you can change the fn I sent you to check if `collection.length === 1` Bookshelf's fetch fn return...
As I mentioned earlier, need some more info if you're still having an issue with `ModelBase.upsert`, which finds the first match and updates it or creates