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 have created a remote method in loopback     XXX.remoteMethod('getAllGlobalFilters', {     'description': 'List of all GlobalFilters',     'http': {       'path': '/getAllGlobalFilters',       've...
I am having a hard time finding any documentation regarding redirecting to a URL inside a model function or remoteMethod. Has anyone here already done this? Please find my code below.   Function inside Model (Exposes /catch endpoint)  Form.catch = fu...
I am currently trying to produce an API using loopback that allows me to send a 28x28 image file of a handwritten character and have the image processed by a tensorflow network and return the prediction of what the network thinks the character is....
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":...
My code is as following.My objective is to retrieve first name of student from the function object given below. I did try JSON.Stringify and JSON.Parse  EnrolledSessions.find({     where: {         aproval_status: 'pending',         tutor_id:...
How can I define some validation rules depending on some conditions in request body. For example, I want to validate that post description field is set only if the post is published (isPublished flag equals true), something like:    module.exports =...
I am using Loopback 3.22 with loopback-connector-mysql 5.3.1.  When i configure loopback to covert BIT(1) mysql column as boolean it always returns true  "isActive": {   "type": "Boolean",   "required": false,   "l...
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 have a model Post, with a HasMany related model Ratings (also BelongsTo Post).   I want to find all of the Posts with more than 200 Ratings.  So far, the only solutions I can think of are:   Get all of the posts, and manually filter them with a for...

Tags

Recent Questions

Top Questions

Home Tags Terms of Service Privacy Policy DMCA Contact Us

©2020 All rights reserved.