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 created a model named member inherited from the built in model User, But how can I change the format of the login return. ie,  currently the invalid login is returning like  {   "error": {     "statusCode": 401,     "name":...
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'm confused by this kind of strange behavior from loopback. I created a very simple remote method as an example below.  Device.getTypes = function(next) {     let result = {0: {val: 10}};     setTimeout(function() {         result[0].wait = true...
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'm trying to use the AngularJS SDK of Loopback but i didn't find a way to do a request with multiple where clause (and there are no examples in the documentation).  $scope.events = Professional.events({         id: '1',         filte...
I have a string that can be used to uniquely identify a Model instance, e.g., email - [email protected], which can be assigned to only one instance in the database, which means it won't be duped.  Now, how can I make this string from a variable to be...
I want to empty the database before my acceptance test cases.  In my aircraft.controller.acceptance.ts I have  import { givenEmptyDatabase } from './helpers/database.helpers'; ... before(givenEmptyDatabase); ... describe( ... ) { ... }   in d...

Tags

Recent Questions

Top Questions

Home Tags Terms of Service Privacy Policy DMCA Contact Us

©2020 All rights reserved.