loopbackjs Questions
0
I have created a web application using the Loopback.io framework and have been writing documentation for it in LaTeX. I need to display the current API documentation in this LaTeX document. Loopbac...
Demarcation asked 26/5, 2016 at 4:57
3
Solved
I have a loopback app and I'd like to be able to include computed properties from relations in an API call. For example, say I have an apartment model and an address model. The address has properti...
Hermaphroditus asked 3/3, 2015 at 19:49
1
Solved
Loopback datasource API offers automigrate function with an optional callback.
I see in some examples that the callback gets one parameter (err), but no definition of that.
What form does the ca...
Grandmotherly asked 13/5, 2016 at 18:11
1
I'm unable to connect to Keycloak from Loopback.
I've been trying to use the keycloak-connect lib:
https://github.com/keycloak/keycloak-nodejs-connect
This is my current server/boot/root.js
mo...
Colunga asked 5/5, 2016 at 16:54
1
Solved
I want to define custom 404 not found response pages with loopback.
In documentation it's been given that loopback's middleware has been defined on express but i am not getting how to define custom...
Azeotrope asked 20/3, 2015 at 5:0
2
I'm currently building a loopback application, which only has a single model named Phone. Here's my common/models/phone.js code:
module.exports = function(Phone) {
// Return a random phone's dat...
Mogerly asked 5/3, 2015 at 1:49
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
1
I want to upload a file to a storage container using the Loopback storage service.
But the .upload() method expects a request object. But what if I want to upload an existing file that's not comi...
Sousa asked 12/10, 2015 at 9:44
1
Solved
Here is documentation about AngularJS JavaScript SDK
This example works perfect for Angular. It is possible to generate Angular client library with command
$ lb-ng ../server/server.js js/lb-servi...
Hearsh asked 17/1, 2016 at 20:25
1
I need to override the GET on strongloop. So when I GET foo/ it returns something different as the default one.
I tried using remoteMethod with http: {path: '/', verb: 'get'} without success.
How...
Aekerly asked 10/2, 2016 at 22:5
1
Solved
I have an issue where when I pass two object types as a remote method argument, the first argument gets overwritten by the second argument. Below is code and results. How could I go about not havin...
Shotgun asked 10/2, 2016 at 19:44
1
Some questions that I can't find the answer to in the documentation.
I'm trying to get a structure like this:
Node:
id: '1sdf12asd123',
name: 'node1',
history:
[ ts: 234234234234,
data: {...
Mariannamarianne asked 29/1, 2016 at 9:40
1
I am using loopback framework with nodejs.
Is it possible to connect multiple database at a time.
For example I have two different database.
1. Mysql Database - A
2. Postgresql - B
Some pages ...
Inferential asked 9/2, 2016 at 7:52
2
Solved
On the Google groups post on deprecating loopback-testing there is a question that asks about providing a proper example of how testing can be achieved without loopback-testing. That thread talks a...
Redford asked 26/1, 2016 at 0:23
1
I'm trying to understand how I can fit a custom JWT routing into loopbacks security model. My application has an authentication "dance" involving SMS that results in a valid JWT token using the exc...
Lavona asked 26/12, 2015 at 18:47
1
Solved
Is it possible to hide the id attribute in a method in swagger-ui generated by explorer in Strongloop Loopback?
I don want the user to create a new resource and send the id attribute. I know that i...
Gentilesse asked 27/1, 2016 at 14:18
1
Solved
I try override find api of strongloop rest endpoint. I want to return an array of objects. But how do I specify the schema for the object? As you can see from the picture above, the model schema ...
Hoseahoseia asked 25/1, 2016 at 2:2
1
My project includes web and android client. I want to combine Google cross platform sign-in and loopback third-party login.
In my scenario, I will never ask username and password. User only uses G...
Geneviegenevieve asked 30/5, 2015 at 21:39
3
I seem to be stuck on a classic ORM issue and don't know really how to handle it, so at this point any help is welcome.
Is there a way to get the pivot table on a hasManyThrough query? Better yet,...
Wistrup asked 22/12, 2015 at 9:52
2
Solved
Is there a prescribed way to create a custom validator in loopback? As an example, assume that I want to create something like:
Validatable.validatesRange('aProperty', {min: 0, max: 1000})
Pleas...
Preliminaries asked 17/9, 2015 at 13:38
2
Solved
I'm developing an API with loopback and passport. I've seen this example, which is quite good:
https://github.com/strongloop/loopback-example-passport
In the documentation, they say loopback foll...
Quad asked 11/6, 2015 at 18:47
3
Is there a built-in way to auto increment a model's property value is Strongloop loopback ? This model has a property named orderNumber and I want it to start at 1 and increment by 1 every time a n...
Huff asked 2/1, 2015 at 16:19
3
Solved
I have generated an app using slc loopback command. So the generated express webapp has its strongloop favicon. How can I change the favicon?
I am using this in server.js
app.use(loopback.favicon...
Douro asked 5/9, 2015 at 11:35
1
Solved
I use LoopbackJS framework for Node.js (the same as Express because it is based on Express). And I cannot set React server side rendering. I followed this article, and answers here on Stackoverflow...
Ovoid asked 21/11, 2015 at 2:20
1
Solved
I'm trying to do a not in query in loopback.io. But couldn't find any feature related to that. Here is what I have tried:
Product.find({
where: {
name: {
like: '%' + searchTerm + '%'
},
id: {...
Firebrand asked 9/11, 2015 at 8:37
© 2022 - 2024 — McMap. All rights reserved.