bookshelf-camelcase
bookshelf-camelcase copied to clipboard
Convert column names to camelCase for gets and back to snake_case for sets
attr variable can be undefined in case of use "through"
I'm trying to insert some data on my table. That table has a field called MED_PLA17 But BookShelf dont recognize when I try to set this field ``` const record...
When you try to define model with custom id containing underscores model always uses `insert` instead of `update` method on save. ```javascript const Foo = bookshelf.Model.extend({ tableName: 'foos', idAttribute: 'custom_foo_id',...