loopbackjs Questions
1
Solved
I am using loopback 3.0.0, and I have set up a new server recently, about one week ago. For that, I have ran the command npm install by putting the package.son file.
But in that installed files, t...
Quassia asked 4/6, 2018 at 14:46
2
Solved
How to create a permanent access token for a StrongLoop API. Now for every user login it creates an access token. And unnecessary entry in my db
I can increase the validity of access token(ttl) as...
Bisk asked 23/9, 2015 at 11:25
2
Solved
I am using loopback without the strongloop framework itself, meaning I have no access to any of the cli tools. I am able to succesfully create and launch a loopback server and define/load some mode...
Floret asked 25/11, 2015 at 13:25
3
Solved
Looks like there are about 5 of these types of questions, all unanswered, maybe someone who's done it will have some time to share a solution.
I've got a loopback API app running locally, and it c...
Crude asked 3/1, 2018 at 21:21
3
Solved
I am trying to modify the http status code of create.
POST /api/users
{
"lastname": "wqe",
"firstname": "qwe",
}
Returns 200 instead of 201
I can do something like that for errors:
var err =...
Aramaic asked 14/11, 2014 at 15:7
3
Solved
I have a model with a number of properties. One of those is a field named "developerId" that contains a string which has the same length and characteristics as a MongoDB ObjectId (it is in fact a s...
Alveolate asked 4/7, 2015 at 11:37
1
I have a client application on react-redux & API app on loopback.
For my local testing I am running client app on port 8080 and server app on port 3000.
When I try to test out the Google OAut...
Tenatenable asked 27/4, 2016 at 1:3
2
Solved
I want a model to represent a profile in my loopback app. But, the built-in User model found in loopback only have the following properties
username
password
realm
emailVerified
What is the bes...
Callum asked 31/10, 2017 at 17:54
5
I have a model like this -
{
"name": "MakeCallTestConfiguration",
"base": "PersistedModel",
"idInjection": true,
"properties": {
"id": {
"type": "number",
"id": true,
"generated": true
},...
Narcolepsy asked 22/1, 2015 at 23:14
2
Solved
When I'm creating a model in strongloop with the following command:
slc loopback:model
loopback asks me for choose between common model or server.
Common model or server only?
I really don'...
Untrimmed asked 23/2, 2016 at 22:36
2
Solved
I developed an API using Loopback framework, in that i have to insert or update to a table.
My table looks like below:
userid bbid saved id(PK)
1 5 1000 1
So when next time if(bbid = 5) it sho...
Mihrab asked 1/7, 2016 at 6:26
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
2
Solved
When I query to include a nested model – e.g. GET /api/Widgets/1?filter={include: {"foos": "bars"}} – I get duplicate foos in my results. I thought this was due to a LEFT JOIN or something like tha...
Froh asked 1/2, 2017 at 21:56
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
2
i'm trying to add a get remote method to my api using loopback 2.0 in order to achieve the same method structure as the default ones, such as :
/myObject/{id}
The way I've tried is :
MyObject....
Butler asked 19/4, 2017 at 20:12
2
Solved
Been trying to find samples usage for some of the static methods for a persistedModel in Loopback.
https://apidocs.strongloop.com/loopback/#persistedmodel-prototype-updateattribute
it just says:
...
Mockery asked 3/10, 2017 at 0:1
1
Solved
Im using NodeJS Request - Simplified HTTP Client
I seem to have problem working with HTTPS website, I am not getting result.
var request = require('request');
request.post({
url: "",//your url
...
Offertory asked 27/10, 2017 at 6:40
1
Solved
I have set up my Loopback project and installed other packages required to run my project. Whenever I tried to run the application with the command within the folder
node .
it is raising follo...
Sy asked 24/10, 2017 at 12:57
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
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
I'm using Strongloop's loopback tool to create a REST service. I'm wondering how to define what related entities to return when requesting a model.
I see in the docs that you can send a request l...
Tobytobye asked 18/9, 2014 at 4:2
2
Solved
I want to use cookies to keep a user logged in.
On this page here they say
To use cookies for authentication, add the following to server.js
(before boot):
app.use(loopback.token({ model: app...
Hertz asked 13/3, 2016 at 10:57
1
Is there a form to make loopback automatically validate input parameters in a remote method?
Let's assume we have the following definition of a remote method:
WebuserModel.remoteMethod('overLogi...
Fawn asked 25/11, 2016 at 11:4
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
© 2022 - 2024 — McMap. All rights reserved.