| 6 | const { Model, snakeCaseMappers } = require( 'objection' ) |
| 7 | |
| 8 | class BaseModel extends Model { |
| 9 | // To avoid too many SQL variables error |
| 10 | static get defaultEagerAlgorithm() { |
| 11 | return Model.JoinEagerAlgorithm |
| 12 | } |
| 13 | |
| 14 | static get useLimitInFirst() { |
| 15 | return true |
| 16 | } |
| 17 | |
| 18 | static get columnNameMappers() { |
| 19 | return snakeCaseMappers() |
| 20 | } |
| 21 | } |
| 22 | |
| 23 | module.exports = BaseModel |
nothing calls this directly
no outgoing calls
no test coverage detected
searching dependent graphs…