How to use the feathers-sequelize.Service function in feathers-sequelize

To help you get started, we’ve selected a few feathers-sequelize examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github jenkins-infra / evergreen / services / src / services / update / update.class.js View on Github external
const FeathersSequelize = require('feathers-sequelize');
const errors            = require('@feathersjs/errors');
const logger            = require('winston');

class NotModified extends errors.FeathersError {
  constructor(message, data) {
    super(message, 'not-modified', 304, 'NotModified', data);
  }
}

/*
 * This class exist mostly as a wrapper around the feathers-sequelize service
 * for the Update model.
 */
class Update extends FeathersSequelize.Service {
  constructor(options) {
    super(options);

    this.app = options.app;

    /*
     * Undefining some APIs which we don't want/need.
     */
    this.update = undefined;
    this.remove = undefined;
  }

  /*
   * Return the latest update level for the given parameters
   *
   * Typically will not be called with an `id`, and is directly

feathers-sequelize

A service adapter for Sequelize an SQL ORM

MIT
Latest version published 6 months ago

Package Health Score

73 / 100
Full package analysis

Popular feathers-sequelize functions