strongloop Questions

3

How do you return an error inside an operation hook? Use case is sending a push notification after saving a new model instance. I observe the 'after save' event, send the push. If this fails for wh...
Calyx asked 29/5, 2015 at 5:37

1

How do I pass custom request headers (X-TRANSACTION-ID,X_USER_ID) in loopback for a POST API. We have the headers part in the data source file. But how do I make it dynamic ? I am using a remote me...
Enunciate asked 22/6, 2015 at 18:48

0

Is there a way to count the number of instance of a related model, without using an include on the filter? I already found loopback-counts-mixin, but I am hoping that there is a native way of doin...
Wingback asked 15/11, 2017 at 23:53

4

I have two models that are related through a hasMany relationship. Customer hasMany CustomerPhones When creating a new Customer, I would like to pass the related CustomerPhones as part a single r...
Dietrich asked 4/12, 2015 at 21:12

7

Solved

What I want to do: Have an html form, with a file input inside. When a file is chosen, the file input should upload the file, and get a file id, so when the form is submitted, the file id is posted...
Vitrain asked 5/3, 2015 at 18:39

5

Solved

I am trying to connect to a database that I have hosted at MLab. I am using the StrongLoop API. I've placed the config information for my hosted databases into my datasources.json and config.json f...
Pompous asked 24/3, 2016 at 17:44

3

Solved

I have developed a Loopback API and would like to deploy it to a test instance (Heroku or Digital Ocean, probably). It is quite complicated to understand how to deploy it. There seems to be many ...
Adduction asked 18/4, 2016 at 14:15

2

Solved

Any working solutions of using Relay/GraphQL with Loopback? I guess a few things I'm considering are how to access the database (since I'm assuming going through the ORM wouldn't be possible) and h...
Cumuliform asked 22/5, 2016 at 16:13

2

Solved

I'm trying to find a person by either their name OR identifier using StrongLoop's Model.find syntax (documentation here: http://apidocs.strongloop.com/loopback/#modelfindfilter-callback). But I ca...
Ariannearianrhod asked 20/5, 2014 at 21:58

3

Solved

Our MySQL database are set up with Write clusters and Read clusters, is there a way to set up Strongloop Loopback Model (e.g. User) to Write to MySQL Host A and Read from MySQL Host B?
Serb asked 1/7, 2015 at 23:30

0

does Strongloop Loopback support filtering in change-streams? The following works for all model changes, but I am only interested in changes of parts of the model. Can I add filtering to the Even...
Cacoepy asked 22/4, 2017 at 16:42

1

Solved

The question is pretty straightforward: Is there some way to publish two different NPM modules to the npmjs registry from a single nodejs project? But for those of you wondering why the heck would...
Fluidize asked 20/6, 2015 at 17:51

1

Is there any good way to load a module elegantly (where the IDE can suggest or go into the file) using dynamic path or start from the root directory to import a module? import * as Q from 'q'...
Gilles asked 10/9, 2015 at 11:41

4

I'm trying to get Loopback to discover and build my first table. I've used the simple example on their page at the bottom here: http://docs.strongloop.com/display/LB/Database+discovery+API#Databas...
Martita asked 30/9, 2014 at 19:9

0

We are using strongloop process manager for running my loopback app on production boxes, and using sl-deploy to deploy the code. We are facing the below issue:- FATAL ERROR: CALL_AND_RETRY_LAST ...
Dislimn asked 31/1, 2017 at 8:56

3

Solved

I'm using loopback Api Explorer I need to upload a file by explore how can I upload that because I don't find any option to upload file please refer the screenshot .
Speciosity asked 8/9, 2015 at 5:26

1

I'm new to LoopBack, and I seem to be missing something. I've heard so much about StrongLoop and LoopBack, I find it hard to believe this doesn't exist. My case: I'm looking to count the amount of...
Panegyric asked 17/2, 2016 at 12:20

5

Solved

I have installed Strongloop using npm install -g strongloop on my Ubuntu 14.04 server. The slc command does not work. It says The program 'slc' is currently not installed. You can install it by t...
Drew asked 24/3, 2015 at 0:31

1

I want to setup an OAuth 2.0 Server using Loopback using a package called loopback-component-oauth2 The documentation is here : https://docs.strongloop.com/display/public/LB/OAuth+2.0#OAuth2.0-Usi...
Cracked asked 5/10, 2016 at 12:33

2

Solved

I want to use different environment specific datasource configurations in a Strongloop app. I saw at https://docs.strongloop.com/display/public/LB/Environment-specific+configuration that the priori...
Soot asked 12/2, 2016 at 14:4

1

My application's users are geographically dispersed and data is stored in various regions. Each region has it's own data center and database server. I would like to include a route value to indicat...
Le asked 6/10, 2016 at 3:34

8

Solved

I am trying to use Strongloop with MySql but cannot figure out how to migrate or automatically create tables into a MySql database. Is there at least a way to export the models into MySql schemas ...
Taskwork asked 19/4, 2014 at 10:40

1

In a Loopback application, there's mention of a built-in Application model. This page says "contains metadata for a client application that has its own identity and associated configuration wit...
Aldercy asked 11/12, 2015 at 4:47

2

Solved

I am using loopback for storing Image to the server. I want to modify the file name of the file before getting saved to the server. Also I want to convert it to another thumbnail form before get...
Prospect asked 25/6, 2015 at 11:6

1

Solved

I read that embedsMany (in case of non relational db) puts the embedded models in the parent model document. While hasMany creates a new collection of child model and a relation is created between ...
Kessinger asked 19/2, 2016 at 10:51

© 2022 - 2024 — McMap. All rights reserved.