Jarm is JSON-API Relational Mapping
Define a schema for your JSON API resources and your relational database... at the same time!
Pairs nicely with @twuni/pg.
Installing
NPM
$ npm install jarm
Yarn
$ yarn add jarm
Usage
;;; const schema = columns: attribute: 'favoriteColor' column: 'favorite_color' type: 'text' id: column: 'id' type: 'text' relationships: columns: attribute: 'id' column: 'related_id' type: 'text' attribute: 'type' column: 'related_type' type: 'text' name: 'owner' table: 'r_widgets_owner' resource: 'widget' table: 'widgets'; const store = schema; Pool;