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 very new to loopback, and I want to update a particular model instance before creating data into the database.   I have read about Operational hooks, Remote hooks. I have Operational confusion hooks for All models, and remote hooks are for remot...
I want to update an attribute by remote method but it is not working correctly, I want to post age to from app to backend and update it in the backend.  Person.testupdate = function ( id, age, cb) {     Person.upsertWithWhere({       where: {...
I am using updatingAll method in loopback but it is not working I am not able to understand the reason   I have written something like this   let data = {       isActive: false     };        myModel           .updateAll(data, {             id: {...
I have a model that I need to switch dataSources whenever I want. For that, I created a remote method on that model and used the attachTo() method.  // myModel.js   switchDataSource = function(req, fn){  const app = MyModel.app;  console.log('req...
"US Virgin Islands": [ "Charlotte Amalie", "Christiansted", "Frederiksted", "Kingshill", "St John Island" ],   I have this JSON file.  I want to save the data as it is.  So country name and all the cit...
I started messing around with Loopback recently and I'm not quite sure how to load config parameters from MongoDB or Redis. I didn't want to make it asynchronous reqs all the time. Not sure how to proceed...
So i have the following table:  external_user_has_survey_question_answer    This table has a belongsTo relation to the table:  external_user    Now i am trying to query data where member_id is equal to 3    loopbackModels.findModel("external_user...
I'm trying to learn about Loopback v3 (which is what they are using on a job site where I'm working), and I'm trying to follow their tutorials.  One of the steps is to install Strongloop  npm i -g strongloop  but it keeps failing with the...
I'm trying to learn authentication using Loopback on a simple react app. I am trying to list Pets which I set to only be accessible whenever the User is authenticated.  My ACLS section in the pet.json file currently looks like this (which was the...

Tags

Recent Questions

Top Questions

Home Tags Terms of Service Privacy Policy DMCA Contact Us

©2020 All rights reserved.