strongloop Questions
3
I'm trying a query on a postgres database through the loopback api explorer:
{"where": {"archived_at":{ "neq": null }}}
However, I only get results where archived_at is null?
Yama asked 15/5, 2015 at 15:30
7
I would like to know if there is a way to returns a specific HTTP status code from within a remote method.
I can see that there is a callback function which we can pass an error object, but how do...
Cowage asked 22/12, 2014 at 19:32
8
Solved
I adapted this from Ray Wenderlich's iOS Apprentice tutorial part 4.
This code works as a GET request sent to my Strongloop API with a simple database model, however:
This works, but I don't kno...
Marked asked 26/6, 2015 at 16:29
2
I'm trying to use an xml web service soap client in node and I'm not sure how to add the soap header for my example.
Looking at strong-soap, there is a method addSoapHeader(value, qname, options) ...
Hawse asked 7/1, 2017 at 13:18
5
Using Loopback framework, I want to perform some operations before the Item is edited hence I am trying this but unable to bind this to the update hook.
Item.beforeRemote("update", function(ctx,...
Spectrohelioscope asked 17/12, 2015 at 4:36
3
Solved
I have the following:
nodemon server/server.js --watch common --watch serve
This doesn't work at all. Alright, maybe it's because server/server.js doesn't exist! So I tried the following:
nodem...
Forgetful asked 14/2, 2019 at 13:38
4
I want to query records from a specific model via REST-Api from a LoopBack-application. Also i want to include related objects via the include-filter.
This works fine, but returns ALL related objec...
Counteract asked 22/2, 2017 at 9:15
1
Solved
I want to query Exercise model objects and include related objects (relation: athletExerciseLogsExercise). But I need only 1 related object, thats why I add "limit: 1" to inclusion scope:...
Revengeful asked 19/3, 2021 at 13:4
5
Solved
I'm newbie on Strongloop and I can't find information for how to customize my response class (model schema for a object I built) and I don't know how to show on the API explorer the object with cus...
Blackout asked 4/3, 2016 at 9:41
4
I'm creating rest api backed by PostgreSQL. I like Strongloop Loopback framework, it streamlines api development. But how its built-in orm compared to sequelize?
What advanced features has sequeli...
Addington asked 10/4, 2015 at 13:26
3
Loopback uses sequential number for model ID. Can I use my own ID generator on server side? How do I go about doing that?
Justinjustina asked 14/4, 2016 at 20:37
3
I am using a custom model and trying to filter it in a loop using find method. e.g. given below
for i = 0 to n
{
var u = User.find( where { name: 'john'});
}
It doesn't work.
Also, if I use the...
Trawick asked 27/1, 2015 at 14:11
5
Solved
How would I go about using aggregate functions in Loopback models? If I have a model backed by a mysql database, could I have Model1 with a hasMany relation to Model2 (with a given numeric property...
Whack asked 22/8, 2014 at 2:19
3
Solved
How to ensure uniqueness of a particular field in loopback model.
Like below is the model Post, I have a field genericId in it, I want it to be unique in the database, and loopback to through an er...
Extol asked 19/9, 2014 at 6:48
3
Solved
Hi as of title of question I was wondering how one can check if loopback boot scripts have finished before launching tests.
In a example project:
https://github.com/strongloop/loopback-example-re...
Chefoo asked 11/7, 2016 at 18:1
3
Solved
I have defined several models that use a Datasource "db" (mysql) for my environment.
Is there any way to have several datasources attached to those models, so I would be able to perform REST opera...
Horripilate asked 25/11, 2014 at 10:44
3
Solved
I succeed to generate all my models from my database. Then, I run the api by executing, 'node .'
I'm able to see all my web services but when I try to try out a service, there is an 500 error sayi...
Upswell asked 9/9, 2015 at 18:45
2
Solved
I'm working in Loopback 4 and getting stuck in creating a POST method so that client can call this method and upload a multipart/form-data.
I read some examples:
https://medium.com/@jackrobertsco...
Scribe asked 1/11, 2018 at 14:5
4
Solved
I have renamed a number of models and tables in my loopback application, however I must now migrate to this model definition.
I need to run autoMigrate(). It must be run on a dataSource object but...
Galah asked 13/10, 2016 at 20:10
5
Solved
We're using Strongloop's LoopBack for our REST APIs and would like to modify the CSS for the LoopBack Explorer. However, it's not clear which CSS files are being used (LoopBack vs Swagger) and wher...
Maemaeander asked 21/1, 2015 at 17:34
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
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
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
1 Next >
© 2022 - 2024 — McMap. All rights reserved.