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...
According to the documentation you can create custom response classes; https://docs.strongloop.com/display/public/LB/Remote+methods#Remotemethods-Argumentdescriptions  The remote method description I use is:  common/models/products-sku.js  ProductsSk...
I'm would like to know how could i create a method, or if there is a method to generate a new token only with the email. I want create a option in my site "Send new verification email", where the user only needs to put the email. Actually...
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....
I have two Models Customer and UserProviders  In Customer.json, have the following relation  "relations": {     "userProviders": {       "type": "hasOne",       "model": "UserProviders",       "fore...
In lib/models/user-identity.js     function profileToUser(provider, profile, options) {   // Let's create a user for that     var  email = (profile.username || profile.id) + '@loopback.' +               (profile.provider || provider) + &#...
In the Loopback documentation Initializing the application, it is said two things :  First :          Loopback.boot() loads data sources and models based on json definition files,          or given options, then, loads all js files from models/ and b...
I am trying to join table ABC with XYZ, and count records in ABC (excluded records filtered in XYZ) using Strongloop.  My code is:    ABC.count({where: {abcPropertyName: {neq: '0x0'}}, include: { relation: 'XYZ', scope: {where: {xyzPr...

Tags

Recent Questions

Top Questions

Home Tags Terms of Service Privacy Policy DMCA Contact Us

©2020 All rights reserved.