Questions tagged [angular-loopback]

60 questions
0
votes
1 answer

Loopback Node :- Error: Cannot find module 'enum'

I have searched a lot for the solution but not succeed I Tried 1.npm cache clean --force 2.npm install And also tried with 1. Manually remove cache files from C:\Users\AppData\Roaming\npm-cache\_logs 2. npm install OR npm install…
Chandela
  • 262
  • 5
  • 18
0
votes
1 answer

Loopback where filter not working inside include

I have this filter written that i am passing to my endpoint written in Loopbackjs. const filter = { where: { status: { neq: "processed" } }, include: [ { relation: "vendor", scope: { fields: ["id", "name"] }…
Ehsan Nissar
  • 643
  • 2
  • 13
  • 35
0
votes
1 answer

How to redirect the loopback4 home screen to angular 8 application running some other port

In loopback 3, client root config is defind in middilware.json file, "files": { "loopback#static": { "params": "$!../client" } }, like in loopback 4, application.ts file has the path for home page of lb4 // Set up default home page …
0
votes
2 answers

Integrating Loopback 4 and Angular 8

I am new to loopback. Started with Loopback 4. I am trying to create a simple 'Hello world' application using Loopback4 and Angular8. In my application.ts, I am pointing my static directive path to my angular application src folder. // Set up…
user3014311
  • 438
  • 8
  • 27
0
votes
1 answer

Unable to alter desired attribute value due to missing model instance in Access/Loaded Hook's context objects(LoopBack3)

I want to alter an attribute in someModel, whenever a find is called over this model. As I can't use remote Hooks as find is not a remote method, rather built in, and in operational hooks find/findOne only trigger access and loaded hooks, and as my…
kestrel
  • 126
  • 1
  • 16
0
votes
1 answer

Loopback 4 - ER_BAD_FIELD_ERROR

I am having a weird error: Unhandled error in GET /managers: 500 Error: ER_BAD_FIELD_ERROR: Unknown column 'role_id' in 'field list' at Query.Sequence._packetToError …
Eduardo
  • 1,781
  • 3
  • 26
  • 61
0
votes
1 answer

loopback query based related model

let's say I have Order model that hasMany Product(product_id, name, order_id) and Product belongs to Order I want to find only those orders that have product with specific product_id. According to…
Łukasz Niemkiewicz
  • 211
  • 1
  • 3
  • 12
0
votes
1 answer

How to use include "users" in restangular login?

I want to store token and user information in local storage ,things like store token and userId are okay except I can't include users detail information like email this.login = function (data) { var loginResults = Restangular.one('/users/login') …
0
votes
1 answer

loopback logout access_token is required

I want to test loopbacks logout endpoint. But it returns access_token is required. what is the correct JSON body to feed or the loopback user logout endpoint?
tsadkan yitbarek
  • 1,360
  • 2
  • 11
  • 28
0
votes
1 answer

How to get value to description field defined for a property defined in loopback model

I have the following model definition in a loopback project: ` { "name": "Program", "base": "PersistedModel", "properties": { "sId": { "type": "string", "required": true, "length": 20 }, "Category": { …
0
votes
1 answer

PersistedModel.create(Array) returns an object with numbered properties

Below is a snippet of code that calls a Loopback API method with an array of values. The input values are correct, no errors are thrown on the API and the subscribe block runs as expected. const newStudentGroups = …
0
votes
1 answer

Loopback : Validate model from another model is not returning proper error message

I am validating model from another model like below Model.addFavorite = function (data, callbackFn) { if (data) { var faviroteModel = this.app.models.Favorite; var objFavorite = new faviroteModel(data); …
Ankur Akvaliya
  • 2,989
  • 4
  • 28
  • 53
0
votes
1 answer

Loopback three way data binding

I planning to use loopback for my back end. Is it possible to have three way data binding feature in loopback(like firebase).
sathishkumar
  • 1,780
  • 4
  • 20
  • 31
0
votes
1 answer

Loopback: autoupdate value

I have a model with properties: status and statusId where statuses can be: StatusId & Status are described below: open processing close reject failure What I want is if I insert or update the status of my model then statusId should…
Varun Sukheja
  • 6,170
  • 5
  • 51
  • 93
0
votes
1 answer

Get a list of all fields in a MongoDB Collection Using loopback

I am using loopback. I have user table in mongodb. I want unique column names(keys) of user table. I have found below answer in mongodb. mr = db.runCommand({ "mapreduce" : "my_collection", "map" : function() { for (var key in this) {…