Questions tagged [loopbackjs]

LoopBack is an open source Node.js framework built on top of Express.js 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 JavaScript, iOS, and Android SDKs.

The LoopBack framework is a set of Node.js 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 iOS, Android, and HTML5.

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.

See also

2853 questions
1
vote
2 answers

Strongloop/Loopback findAll feature returns null

I'm developing an Android application in conjunction with Strongloop/Loopback. I've stored my data in a MySQL database and have no problem mapping this with Strongloop/Loopback. However, when retrieving the values from the database using…
Master_A2Z
  • 97
  • 2
  • 12
1
vote
1 answer

How to define that a model has many of the same model in Strongloop Loopback?

What should a models.json look like when I want to define that a Organization has many Organizations? I tried to define a hasMany through relationshio, using an intermediate model called clients but it didn't work: "organization": { "properties":…
Julian
  • 505
  • 2
  • 10
1
vote
1 answer

Loopback model listen/receive xml post

I developing loopback API and in one model called "payment" must listen xml post from another web app. I tried to make model hook on payment model to receive the xml post, but I confused how to accept xml file has been sent in my model hook?
allfix
  • 52
  • 1
  • 5
1
vote
2 answers

hasMany relation loopback

My models.json: My models.json "masterTrip": { "options": { "relations": { "trips": { "type": "hasMany", "model": "trip", "foreignKey": "masterTripId" } } …
allfix
  • 52
  • 1
  • 5
1
vote
1 answer

how to connect to mysql using strongloop

I have a table on my server . is it possible to get this data and pass it to strongloop? How should i do it? i've searched that there has something to do with the connector? but it seems that i cant do it. can someone guide me how to do it since…
Vincent
  • 852
  • 6
  • 29
  • 67
1
vote
1 answer

Using build in model accessToken not working in loopback

I'm trying to begin programming an api for an android application and wanted to use node.js + loopback for this. But I'm running into some trouble testing/ learning the language. Following code should generate new users in my database(and it does)…
Timbo925
  • 281
  • 4
  • 16
1
vote
1 answer

Can I use bitwise operators to request a Loopback model?

The Strongloop Loopback documentation does not say anything about object retrieval using bitwise filters. Example like in Loopback API documentation : // Just an example of syntax, it does not do bitwise filter Inventory.find({where: {status: {gt:…
Pandaiolo
  • 11,165
  • 5
  • 38
  • 70
1
vote
1 answer

Reuse loopback model for client side validation in backbone?

I would like to use StrongLoop Loopback as a Node.js backend API for a backbone.js app. Is there a way to define models attributes and methods (for example, for validation) that can be used both on the client side, in the backbone model, and on the…
Pandaiolo
  • 11,165
  • 5
  • 38
  • 70
0
votes
0 answers

Loopback Where Clause conversion

Lets say I have the following two models in Loopback4 (Typescript): The RiskManagerDTO Model // RiskManagerDTO // id?: string; // name: string; // risks: Risk[]; I have the other model which is similiar: // RiskManager // id?: string; …
rodonal
  • 3
  • 3
0
votes
0 answers

Unit test with Jest fails when I run it with loopback-remote-routing

Following the loopback-remote-routing syntax, I have included mixins object in the persisted model json file as follows: "mixins": { "RemoteRouting": { "only": [] } } And, inside that array, I have listed my shared methods. But, the test fails…
aggk
  • 1
  • 1
0
votes
1 answer

How to handle multiples environments (dev/prod) in one nodejs app?

I'm not sure if it is possible to do something like this. I have two Reactjs project p1 and p2. For the server, I'm using Loopback3 and MongoDB. Both projects will connect to one server. What I want is to create multiple host database in one server…
Jason
  • 21
  • 2
0
votes
1 answer

Loopback `include` generates multiple queries instead of one join query

I have two models Main & Trans (one to one association) import {Entity, hasOne, model, property} from '@loopback/repository'; import {Trans, TransWithRelations} from '.'; @model({ settings: {idInjection: false, postgresql: {schema: 'public',…
Niv
  • 271
  • 1
  • 7
  • 16
0
votes
0 answers

app.dataSource() function is needed for DataSourceBooter

getting this while running app after I created datasource using lb4 datasource just don't know is it compulsory
0
votes
2 answers

LoopBackJS 3 - Problem with query - Exact ids of Array of objects

How to get conversations that have exact matching ids in the "conversation_members" array using Loopback? I have a collection in Loopback with the following structure: "conversation" : [ { "id": "e03e8b6b-725a-44aa-8181-56cdcebe9a45", …
0
votes
1 answer

Loopback join relation without selecting relation

I'am trying to build a query with loopback 4 with relation between 2 entities customer.model.ts: @model() export class Customer extends Entity { // id, name properties @hasMany(() => Order) orders?: Order[]; } order.model.ts: @model() export…
AmenzO
  • 409
  • 7
  • 19
1 2 3
99
100