Important: This documentation covers Yarn 1 (Classic).
For Yarn 2+ docs and migration guide, see yarnpkg.com.

Package detail

objection-reload

VarunBatraIT1MIT1.0.1

Reload latest values from database through instance

objection, reload

readme

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