loopbackjs Questions

2

I have built a loopback 3 app with mongodb, worked perfectly on local and vps. But I wanted to opt for the SaaS (mongodb.com and heroku.com) and now I am facing an error: /node_modules/loopback-co...
Aphotic asked 26/2, 2022 at 8:57

3

I'm trying a query on a postgres database through the loopback api explorer: {"where": {"archived_at":{ "neq": null }}} However, I only get results where archived_at is null?
Yama asked 15/5, 2015 at 15:30

27

I am using MongoDB Atlas as my database. I am using angular4 with loopback as api. My application connects to my database fine. However, when I try to get data, I get this error (I have replaced my...
Shad asked 9/10, 2017 at 14:55

3

Solved

How do I obtain the sum of a Loopback PersistedModel? There does not seem to be a documentation on how to achieve that. If possible I would like to avoid having to find all the rows and sum it i...
Hegumen asked 5/6, 2015 at 18:40

7

I would like to know if there is a way to returns a specific HTTP status code from within a remote method. I can see that there is a callback function which we can pass an error object, but how do...
Cowage asked 22/12, 2014 at 19:32

5

I have successfully installed loopback CLI using npm i -g @loopback/cli after that I'm trying to create app using lb4 app command terminal and it shows me Command 'lb4' not found. Only lb app works...
Margiemargin asked 25/12, 2018 at 13:48

3

axios.put('http://localhost:3000/api/userDatas/findUserAddProp',{ params: { userId: "5bb8c3bd16bf1f515ce5b42f", prop: "questions", questionId: "5bb8c466cb49d8421c05eeda" } }); Server Userda...
Disepalous asked 6/10, 2018 at 14:37

3

I need to save base64 image in loopback model. When i'm saving base64 image i get an error saying . I have tried updating in middleware same added below, i have done it before in loopback2, for thi...
Omalley asked 12/9, 2017 at 8:41

3

Solved

I want to update my node to version greater than v10 but i still get v9.11.2. I tried this commands curl -sL https://deb.nodesource.com/setup_12.x | sudo -E bash - sudo apt-get install -y nodejs ...
Danella asked 14/3, 2020 at 5:3

4

Solved

I have a controller method // ... inside a controller class @get('/error', {}) async error() { throw new Error("This is the error text"); } The response I'm getting from this error front-end i...
Ponder asked 22/3, 2019 at 22:57

5

Using Loopback framework, I want to perform some operations before the Item is edited hence I am trying this but unable to bind this to the update hook. Item.beforeRemote("update", function(ctx,...
Spectrohelioscope asked 17/12, 2015 at 4:36

1

We are currently migrating a loopback3 application to loopback4. The migration of the server is steight forward, but migrating the angular client seems become an issue because of the "sdk". For lo...
Misogynist asked 11/9, 2019 at 14:17

2

Solved

I am using mongodb with loopback and on successful connection I am getting below warning Top-level use of w, wtimeout, j, and fsync is deprecated. Use writeConcern instead. loopback version: 5.5.0...
Immense asked 25/2, 2021 at 18:55

4

I want to query records from a specific model via REST-Api from a LoopBack-application. Also i want to include related objects via the include-filter. This works fine, but returns ALL related objec...
Counteract asked 22/2, 2017 at 9:15

5

Solved

I'm newbie on Strongloop and I can't find information for how to customize my response class (model schema for a object I built) and I don't know how to show on the API explorer the object with cus...
Blackout asked 4/3, 2016 at 9:41

4

I'm creating rest api backed by PostgreSQL. I like Strongloop Loopback framework, it streamlines api development. But how its built-in orm compared to sequelize? What advanced features has sequeli...
Addington asked 10/4, 2015 at 13:26

2

There are at least two different packages available on npm, loopback-connector-elastic-search and loopback-connector-es. I have not been able to connect my very basic Loopback api to my ES instance...
Sketchbook asked 14/5, 2015 at 2:52

3

Loopback uses sequential number for model ID. Can I use my own ID generator on server side? How do I go about doing that?
Justinjustina asked 14/4, 2016 at 20:37

2

Solved

I found documentation for the previous version https://loopback.io/doc/en/lb3/Environment-specific-configuration.html but I can't find a documentation for the version 4 There's something I'm missi...
Nonrecognition asked 17/10, 2018 at 15:54

3

I am using a custom model and trying to filter it in a loop using find method. e.g. given below for i = 0 to n { var u = User.find( where { name: 'john'}); } It doesn't work. Also, if I use the...
Trawick asked 27/1, 2015 at 14:11

1

I have setup a loopback API, and I plan to use the login as such flask would make requests to loopback and loopback returns an accessToken For example login to dashboard: # Login route @app.route...
Christianechristiania asked 6/10, 2019 at 17:26

5

Solved

How would I go about using aggregate functions in Loopback models? If I have a model backed by a mysql database, could I have Model1 with a hasMany relation to Model2 (with a given numeric property...
Whack asked 22/8, 2014 at 2:19

2

Solved

Getting emails from Mongo Atlas that saying Connections % of configured limit has gone above 80. Using M0 Sandbox tier which has 100 max connections. Whether an upgrade to M2 tier (which has als...
Wayless asked 10/7, 2019 at 11:13

2

Solved

I'm using access_token handling logic form loopback. It works fine, but unfortunately expects the access_token in the URL. Can I configure loopback to use the access_token in the header custom fi...
Hydrofoil asked 20/9, 2016 at 14:13

1

Solved

I noticed some TypeScript node modules (e.g loopback-next/packages) publish their source files with the node module. Is there a particular reason for this or is it just unnecessarily increasing the...
Musa asked 16/8, 2019 at 20:0

© 2022 - 2024 — McMap. All rights reserved.