objection-reload

1.0.1 • Public • Published

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

Readme

Keywords

Package Sidebar

Install

npm i objection-reload

Weekly Downloads

4

Version

1.0.1

License

MIT

Unpacked Size

2.2 kB

Total Files

4

Last publish

Collaborators

  • varunbatrait