1.0.1 • Published 4 years ago
objection-reload v1.0.1
objection plugin to reload the latest values from database
Usage
npm i -S objection-reload
Include with mixin
const Reload = require('objection-reload')
class User extends mixin(Model, [Reload]) {
Then
user.$reload();
Limitations
It will only load its own properties and not relations