Questions tagged [loopbackjs]

LoopBack is an open source Node.js framework built on top of Express optimized for mobile, web, and other devices. Connect to multiple data sources, write business logic in Node.js, glue on top of your existing services and data, build REST APIs and connect using JS, iOS & Android SDKs.

The LoopBack framework is a set of modules that you can use independently or together. An application interacts with data sources through the LoopBack model API, available locally within Node.js, remotely over REST, and via native client APIs for , , and . Using these APIs, apps can query databases, store data, upload files, send emails, create push notifications, register users, and perform other actions provided by data sources and services. Clients can call LoopBack APIs directly using Strong Remoting, a pluggable transport layer that enables you to provide backend APIs over REST, WebSockets, and other transports.

Source: https://github.com/strongloop/loopback

Documentation: http://docs.strongloop.com/display/LB/LoopBack

Debugging: https://loopback.io/doc/en/lb3/Setting-debug-strings.html

2851 questions
0
votes
1 answer

Endpoint conflict

Whenever I execute the following endpoint I get an ID type error. Request GET /lists/45 failed with status code 500. error: invalid input syntax for type uuid: "45" The problematic endpoint: // @get('/blabla/{color}', { //---> Works! …
mbnoimi
  • 374
  • 3
  • 19
0
votes
1 answer

LB4 - Filter where two columns concat equals to string

I want to filter my User table where the concatenation of two columns are equal to a given string. In this particular case, the SQL query should be like this: SELECT * FROM User WHERE CONCAT(name, ' ', lastNames) LIKE '%PARTIAL FULLNAME%' I'm…
0
votes
0 answers

Loopback 4 - Authorization header not present in service after Ambassador OAuth2 Filter login

i'm working with Loopback 4 to develope a service and i need to protect this service with an Ambassador filter. I'm using an Ambassador filter OAuth 2 that use a Keycloack as Identity Provider. The problem i have is that after login i'm correctly…
IlBosco
  • 1
  • 3
0
votes
1 answer

Deploying LB4 appplication on Apache server

I have tried deploying my Loopback 4 application on Apache running on a CentOS 7 server. I followed the instructions given here for Nginx but the proxy pass through is not working on Apache. Is there any documentation on how to deploy a LB4…
0
votes
1 answer

NodeJS sometimes exist after runtime error but sometimes not

I'm using loopback 3 which based on expressJS. I noticed that sometimes the nodeJS app exit when runtime error occurs but sometimes just showing the error but not exit and the app continue functioning. Can someone explain in what types of runtime…
Omtechguy
  • 2,562
  • 3
  • 28
  • 58
0
votes
0 answers

Loopback3's remote method generator not working

Why loopback3.x's remote method generator not working now? Remote method generator returns nothing after entering the required details.
veenaMSL
  • 81
  • 8
0
votes
0 answers

Is there a way of implementing a WSDL first SOAP service with NodeJS (loopback4)

I have to write a SOAP producer starting from a given WSDL specification that is pretty complex. I have found this tutorial on how to do it with spring boot and it works nicely. The problem is that the team I work with is more experienced in NodeJS…
0
votes
1 answer

How to control primary key creation in lb4 discover

How can I control id (primary key) creation in lb4 discover ? Whenever I call lb4 discover it sets required: true and id: number so I've to modify them manually into required: false and id?: number for all available primary keys which is very…
mbnoimi
  • 374
  • 3
  • 19
0
votes
1 answer

Unable to create BLOB/Binary types with LoopBack 4

I'm trying to use Loopback for my new projects, but I've been facing some problems... I have the habit of storing my UUIDs ID in a binary format at my databases, here's an example: @model({ settings: { mysql: { table: 'application' } }, }) export…
0
votes
1 answer

Loopback 4 and EJS Templates

We are building an API that needs to send emails to users. We integrated nodemailer into our Loopbck 4 project, and plan to use EJS for email templates. To my surprise, there does not seem to be any proper documentation available on how to send…
Jack
  • 31
  • 3
0
votes
0 answers

How to cancel saving data in DB with condition using Loopback's api

I am using Loopback 3. I use method patchOrCreate of Loopback for saving data into DB. Now, I want to check condition to determine to save into DB or not. I tried to use hook before save and set context to null. But, it didn't work. How can I solve…
Vu Le Anh
  • 505
  • 6
  • 14
0
votes
0 answers

Is there a way to send very complex queries in loopback using curl?

I succeed when making simple queries in loopback, using curl, with fairly innocuous use of "or" and "and": curl.exe -s -o %TEMP%\output.json -X GET --header "Content-Type: application/json" --header "Accept: application/json" --globoff …
user1030520
  • 154
  • 1
  • 11
0
votes
0 answers

How to build Generic loopback custom "mixin" for various model validation?

Here i am using Loopback 3.x. I want to build a custom generic validation model and then I found it can be done by the mixin. But I want to know how can I build generic mixin in loopback. Please help me out with this how can I do that
Chandela
  • 144
  • 13
0
votes
0 answers

LB4: Authorize provider context is having empty principals

I'm new to loopback when I went through the documentation for authorization examples. AuthorizationContext: contains current principal invoking an endpoint, request context, and expected roles and scopes. Followed the same steps as mentioned in the…
Sri Harsha
  • 270
  • 2
  • 7
0
votes
0 answers

callback was already called in Loopback model

I'm trying to extend api model in loopback and i've added below remote method Employer.myGreet = async function(msg, cb) { return cb(null, 'Greeting... ' + msg); } Employer.remoteMethod('myGreet', { accepts: {arg: 'msg', type: 'string'}, …
Prasad Kanaparthi
  • 5,832
  • 3
  • 30
  • 55
1 2 3
99
100