flâneur — a map of the web's best reading

Models | Objection.js

vincit.github.io · 998 words · saved by 1 readers

An SQL friendly ORM for node.js

Models | Objection.js Guide Installation Getting started Models Examples Relations Query examples Transactions Hooks Validation Documents Plugins Contribution guide # Models A Model subclass represents a database table and instances of that class represent table rows. Models are created by inheriting from the Model class. A Model class can define relationships (aka. relations, associations) to other models using the static relationMappings property. Models can optionally define a jsonSchema object that is used for input validation. Every time a Model instance is created, it is validated agains

Explore this link on the map →

related reading