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
1 answer

synchronous execution in loopback io

I am using Cassandra nodejs connector in loopback io framework. Since loopback do not have a inbuild cassandra connector I am using nodejs cassandra connector. Also I am using remotehook in loopback to call my custom method when calling a rest api.…
Nipun
  • 4,119
  • 5
  • 47
  • 83
1
vote
2 answers

cassandra connector for loopback

I was looking for cassandra connector for loopback so that it creates the model and api. I cannot see a connector for the same in the loopback. My question is how can I use the cassandra connector that is available for nodejs use in loopback in the…
Nipun
  • 4,119
  • 5
  • 47
  • 83
1
vote
2 answers

Returning XML in response from Loopback Remote Method

I am using the Loopback Connector REST (1.9.0) and have a remote method that returns XML: Foo.remoteMethod ( "getXml", { accepts: [ {arg: 'id', type: 'string', required: true } ], …
dj_in_md
  • 25
  • 1
  • 4
1
vote
1 answer

Strongloop (loopback) class methods

I have some difficulty understanding how Strongloop models behave. There is a lot of documentation about static and remote methods, but how about general class methods? Let's say I have a user model, that has a method for showing the full…
Arne
  • 6,140
  • 2
  • 21
  • 20
1
vote
1 answer

Can't read swagger JSON from http://localhost:3000/sw-import.js/resources

I am new to node and swagger and am going through loopback.io examples to try and build an API. I have node, strongloop installed on my machine. I created a new loopback application and set up a quick 'user' model and tried to run swagger explorer…
Helius 06
  • 87
  • 1
  • 12
1
vote
2 answers

Can I use loopback of version higher than 2.0 on AWS?

I am trying to develop server-side using loopback with database connector. However, I am quite confused with installing loopback on AWS. reference for installing loopback on AWS This website mentioned that only loopback of version 2.0 could be…
Ken Kwok
  • 388
  • 3
  • 19
1
vote
0 answers

Loopback filters - on related models with scope

I have the below models defined in loopback, Jobs Tasks Users where Jobs can have multiple tasks to be performed by one or more users. I am trying to query using the below, where I want to find Jobs filtered by a certain organization, tasks which…
1
vote
3 answers

is it possible to use StrongLoop Arc to create a relationship between two models?

In this loopback tutorial we can see how own can create model relationships http://docs.strongloop.com/display/public/LB/Tutorial%3A+model+relations#Tutorial:modelrelations-Createmodelrelations Is the same possible in StrongLoop Arc? Thanks
Radu
  • 17
  • 3
1
vote
1 answer

How to turn off strongloop loopback-testing console logging?

I have a very simple test case of API done with usage of loopback-testing module. lt = require('loopback-testing') assert = require('assert') describe '/profile', -> lt.beforeEach.withApp app lt.describe.whenCalledRemotely 'GET',…
Luman75
  • 878
  • 1
  • 11
  • 28
1
vote
1 answer

Per model file to persist data in loopbackjs

I have this in my datasources.json { "db": { "name": "db", "connector": "memory", "file": "storage/dbdata.json" } } and everything works fine. But I see it dumps all data in one single file which I don't want. Is there any way that…
Nur Rony
  • 7,823
  • 7
  • 38
  • 45
1
vote
1 answer

StrongLoop/LoopBack : get full jSON on Rest connector datasource template

I'm trying to get the full jSON response from google geocoding API so I can test the result "status". From the Docs: responsePath: an optional JSONPath applied to the HTTP body. See https://github.com/s3u/JSONPath for syntax of JSON paths. So I…
1
vote
2 answers

loopback angular sdk get all users with a certain role

I'm currently stuck on getting all the users with certain role, for example admin users, in one angular SDK controller. according to the docs of strongloop. what I did was: User.find({ filter: { include: [{'relation':'roles', 'scope': { …
user1455180
  • 511
  • 4
  • 9
1
vote
1 answer

StrongLoop: EmbedsMany vs hasMany and belongTo

My App has this Events Models. If I create another Model: Dates... so an Event can have multiple Dates, should I use Events EmbedsMany Dates? or is better to use Events hasMany Dates and Dates belongsTo Event? What's the difference? New Dates to the…
1
vote
1 answer

StrongLoop: mutual Model Relations

I have this app with 3 Models: Users, Events and Venues. An user can create events that take places in a venue, This are the relations: User: hasMany Event Venue: hasMany Event Event: belongsTo User But I'm not sure if Event must also belongsTo…
1
vote
1 answer

Amazon S3 browser direct upload unique file name

I'm using Node.js and the Amazon aws sdk for signing an upload request so I can do direct uploads from an Angular application. It works really well except I can't get unique file names. I have tried with creating unique buckets instead but then I…
rhymn
  • 121
  • 2
  • 6