I started to learning promise with loopback and jsforce, and couldn't handle this problem; I couldn't return status var inside promise to cb() function.  Basically i want to connect salesforce and get data via JSforce and write it to db via...
I want to setup an OAuth 2.0 Server using Loopback using a package called loopback-component-oauth2  The documentation is here : https://docs.strongloop.com/display/public/LB/OAuth+2.0#OAuth2.0-UsingtheOAuth2component  But it is very unclear, what mo...
I'm new to loopback.js. I want to use the ES6 syntax for classes.   How to achieve this using the way that the models are defined by loopback?  module.exports = function(MyModel) {   MyModel.on('dataSourceAttached', function(obj){     var...
I have tried an example from http://apidocs.strongloop.com/loopback/#model:  MyModel.on('changed', function(inst) {   console.log('model with id %s has been changed', inst.id);   // => model with id 1 has been changed });   I repla...
I have recently started with loopback framework and made a simple login functionality by creating a 'customer' model inheriting from base 'User' like this:  CUSTOMER.JSON  {     "name": "customer",     "base":...
I'm  trying to load an object on a node.js Loopback server and I want to load multiple related objects in the same query. These related objects are on different depths. This is the query:  /api/MyUsers/114?filter[include][institutes]=institute&am...
Loopback datasource API offers automigrate function with an optional callback.  I see in some examples that the callback gets one parameter (err), but no definition of that.   What form does the callback parameter have? Are there other possible param...
I am trying to implement the change password feature with Loopback's built-in method, It works fine, but it doesn't update the password with hash instead it just saves a plain text in the db. I am using loopback-component-passport npm package...
I have a problem I can't find an answer to in Loopback's docs.   Say I have a model Company and a modelEmployee. There is an 1Xn relation between the Company and its Employees. When /api/Employees is called, server returns all the employees....
I'm new to LoopBack, and I seem to be missing something. I've heard so much about StrongLoop and LoopBack, I find it hard to believe this doesn't exist.  My case: I'm looking to count the amount of events with each different severity....

Tags

Recent Questions

Top Questions

Home Tags Terms of Service Privacy Policy DMCA Contact Us

©2020 All rights reserved.