🚀 DAY 5 OF LAUNCH WEEK:Introducing Webhook Events for Alert Changes.Learn more →
Socket
Book a DemoInstallSign in
Socket

objection-rest

Package Overview
Dependencies
Maintainers
2
Versions
5
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

objection-rest

REST API generator for objection.js models

latest
Source
npmnpm
Version
0.5.0
Version published
Maintainers
2
Created
Source

Build Status Coverage Status

Topics

Introduction

REST API generator for objection.js models.

Installation

npm install objection objection-rest

Getting started

var objection = require('objection');
var ObjectionRest = require('objection-rest');
var Person = require('./models/Person');
var Movie = require('./models/Movie');

ObjectionRest(objection)
	.routePrefix('/api')
	.addModel(Person, function(findQuery) {
		// findQuery.registerFilter(...) see objection-find
	})
	.addModel(Movie)
	.generate(app);

API documentation

See objection-find documentation for the findQuery API.

Keywords

orm

FAQs

Package last updated on 29 Sep 2017

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts