Questions tagged [strongloop]

StrongLoop is an API tier for connecting enterprise data to devices and browsers. It includes LoopBackJS, StrongOps, and StrongNode.

LoopBackJS: Open Source API Server powered by Node.js. LoopBackJS is a Node.js powered, an open source API server with built-in mobile services like push and geolocation. These services can be accessed via iOS, Android, and HTML5 SDKs with a variety of connectors to datasources including Oracle, MySQL, and MongoDB.

StrongLoop Arc: A graphical UI for the StrongLoop API platform that complements the slc command line tools for developing APIs quickly and getting them connected to data. Arc also includes tools for building, profiling and monitoring Node.js applications.

Links:

1287 questions
0
votes
1 answer

strongloop unique id generation

can a loopback model generate a unique ID. Right now I have a auto increment column in a mysql table but then the app sends a insrt query to mysql and then queries it back to get the unique ID. Can loopback just pick a unique ID to insert? If so,…
lightweight
  • 3,227
  • 14
  • 79
  • 142
0
votes
2 answers

Sorting in Loopback Connector Mongo

I'm having a real issue. I'm trying to do a query, limit, sort, etc. This is what I'm doing: MyModel.find( { where: { "location": { "near": { "lat": "80", "lng": 80 }} }, { limit: 50, offset: 0,…
KingFish
  • 8,773
  • 12
  • 53
  • 81
0
votes
1 answer

Strongloop remote method construction

I have the following structure: Volunteers VolunteerTrips Trips Volunteer links to VolunteerTrips via volunteerId. Trips links to VolunteerTrips via tripId. I have the relations set up so I can get the trips list from volunteers and…
0
votes
1 answer

Limiting Relational Model data in LoopbackJS

I have 2 Models that are related through hasAndBelongsToMany Releationship through 3 intermediate model. eg. Artist is related to Tracklist model through third intermediate model TracklistArtist. Tracklist model have belongsTo with Song model. I…
Sankalp
  • 1,300
  • 5
  • 28
  • 52
0
votes
1 answer

Register callback and return document

This is my first experience with NodeJSand Mongo. I am handling all the database query handlers in a seperate JS file, exported as a module in another file, which handles the user requests. I want to search (findOne) user document from a collection…
faizanjehangir
  • 2,771
  • 6
  • 45
  • 83
0
votes
0 answers

statusCode on error from looopback is not correct

I am making an API call to a commerce system (Hybris) using rest-connector in loopback. When there is an error, i am getting response statusCode as 200, whereas the error statusCode sent from hybris is 4xx. Also, when I hit the same URL from my…
pb_
  • 492
  • 6
  • 22
0
votes
1 answer

Basic authentication in Strongloop

I am having issues testing out basic authentication using an admin role. I am trying to set up an admin superuser that will have access to the Role and User REST APIs, among others. Based on an example in the documentation, I have used a boot script…
user3431474
  • 100
  • 1
  • 6
0
votes
2 answers

Errors Installing Strongloop Ubuntu 14.04

I'm getting all these errors. I'm using sudo npm install -g strongloop and also tried sudo npm --unsafe-perm install -strongloop but still get these errors below. This is on an AWS server by the way. It installs perfectly fine locally on my Mac, but…
Nathan McKaskle
  • 2,926
  • 12
  • 55
  • 93
0
votes
1 answer

How to get User information in strongloop using angular.js

I've tried many ways to get the users list/functions using strongloop and the generated angular.js services using lb-ng. Every time I try to get any User functionality, I get a message not authorized. Why would the generated service file contain…
Anoop Thiruonam
  • 2,567
  • 2
  • 28
  • 48
0
votes
1 answer

Creating through model relation not creating relation

I'm trying to create a relation between models using Loopback, but for some reason it seems like it is not saving my relations at all. But it could also be that I'm doing something wrong. The relation looks like this: So a User can be in 0 or more…
Vivendi
  • 20,047
  • 25
  • 121
  • 196
0
votes
1 answer

Built in models with postgres

I've migrated the builtin models (IE. User, Role, AccessToken) to a postgres database. However, I get the following error when trying to request the API: error: invalid byte sequence for encoding "UTF8": 0x00 I use the following code for the…
DrDumbom
  • 97
  • 6
0
votes
0 answers

loopback crashing nodejs when querying via REST api

I have two loop back models like this: { "name": "se_unvrs_fields_cat", "base": "PersistedModel", "options": { "validateUpsert": true }, "mysql": { "schema": "segtool", "table": "se_unvrs_fields_cat" }, "properties": { …
lightweight
  • 3,227
  • 14
  • 79
  • 142
0
votes
1 answer

Generating loopback models after generating looback-angular-services?

I've generated angular services for my database using loopback-lb-services and now I want to make some changes in my database. So i want to know how can i change it. Because i've read that after changing the tables the lb-services will get…
Sparsh Pipley
  • 451
  • 8
  • 22
0
votes
1 answer

How to query with greater than less than condition using StrongLoop-Loopback explorer?

I've been trying to figure out how to perform a simple where condition using greater than or less than using StrongLoop/Loopback. Official documentation states to use the following format: {"where": {"id": {"gt": 45} } } But the Response is showing…
Anoop Thiruonam
  • 2,567
  • 2
  • 28
  • 48
0
votes
1 answer

LoopBack: How to define middleware intercepting REST API calls ONLY?

If I register middleware in server/middleware.json, this middleware is executed for each request, regardless of its kind. But for authorization checks, I need execution only for calls of API paths. How can I achieve this?
ideaboxer
  • 3,863
  • 8
  • 43
  • 62