Skip to content

Instantly share code, notes, and snippets.

View AndersonZacharyT's full-sized avatar
🎯

Zach AndersonZacharyT

🎯
View GitHub Profile
@AndersonZacharyT
AndersonZacharyT / ruleGist.js
Created June 29, 2017 13:30
Rules and Helpers
'use strict';
const _ = require('lodash');
/**
* Marks products as highRisk based on stored rules
* stored in db
* @param feed Product object
* @param next Callback
*/

N|Solid

LoopBack 3.0 Migration

We are upgrading LoopBack from version 2 to version 3. This will require accommodating changes in some clients.

  • Make sure request parameters are properly encoded
  • Change any error.status usages to error.statusCode
  • PUT endpoints no longer perform a partial update (a patch operation), but will replace the model instance as whole. If your application relies on partial updates, you’ll need to update it to use PATCH. (This can happen over time)