feathers-objection
Version:
A service plugin for ObjectionJS an ORM based on KnexJS
18 lines (13 loc) • 295 B
text/typescript
import { Model } from 'objection';
import service, { ERROR } from 'feathers-objection';
class Todo extends Model {
static get tableName() {
return 'todo';
}
}
const myService = service({
id: [ 'id', 'name' ],
model: Todo
});
myService.Model.tableName;
typeof ERROR === 'symbol';