loopbackjs Questions
1
Solved
Is there any way to query results on Loopback+MongoDB with Diacritic-Case-Insensitive options?
For example, If I want to search for the query olimpic, and the database contains words like:
Olímpi...
Gaspar asked 2/11, 2015 at 14:53
1
Solved
I have followed the loopback offline sync example and create my own model with embedded document.
I created a Model named Project where ProjectMembers are embedded model. Here are my model:
Project...
Criminality asked 11/10, 2015 at 12:34
1
Solved
When we have model and we want to migrate it to database, we simply create script in server/boot with:
server.dataSource['myDbSource'].automigrate('MyMode', function(err){...})
or
server.dataSo...
Chloromycetin asked 25/9, 2015 at 12:26
2
Solved
My problem is that I can't figure out how to get multilevel relations structures in one request with LoopBack backend. I have 3 models: Continent, Country, County. What I would like to do is to GET...
Oxblood asked 17/3, 2015 at 16:10
2
Solved
I've created a new User model, based on builtin one. I'm trying this:
module.exports = function(TiUser) {
TiUser.on('dataSourceAttached', function(obj) {
var login = TiUser.login;
TiUser.login ...
Vanderhoek asked 10/9, 2015 at 16:8
2
Ember Data's REST Adapter accepts the JSON from the server in this format:
Taken from the documentation: http://guides.emberjs.com/v1.10.0/models/the-rest-adapter/
{
"post": {
"id": 1,
"title"...
Esquivel asked 25/4, 2015 at 9:15
1
I'm trying out Loopback for an API that will talk to Ember.
Ember requires JSON to be contained in 'keys', e.g. for an account:
{ account:
{ domain: 'domain.com',
subdomain: 'test',
title: 't...
Shope asked 19/9, 2014 at 21:34
3
Solved
I have User model over relational DB.
Each User can hasMany "users" where "chiefId" is FK.
"relations": {
"users": {
"type": "hasMany",
"model": "User",
"foreignKey": "chiefId"
},
}
I can ...
Corselet asked 18/11, 2014 at 15:1
1
When defining relation using "slc loopback:relation", it prompts about "through model" at the last line.
? Select the model to create the relationship from: CoffeeShop
? Relation type: has many
? ...
Nirvana asked 2/8, 2015 at 14:49
2
I'm developing a private web application for a company and they ask me to use their server to host it. I would like to prevent them the access to the source code. How can i do that? Their server is...
Myrtie asked 26/7, 2015 at 12:28
1
I'd like to implement multitenancy in my loopback app. Right now, I'm trying to use middleware to redefine my datasources to point to different databases on my mongodb server for each request, base...
Obnoxious asked 23/4, 2015 at 1:25
1
Solved
I have a model in the loopback API and I want to download it as a file rather than display it as text. I had some old PHP code that I have bastardized adapted to try and download the response as a ...
Myall asked 31/3, 2015 at 15:31
2
This is maddening, how do I get a hold of a loopback model so I can programmatically work with it ? I have a Persisted model named "Notification". I can interact with it using the REST explorer. I ...
Scission asked 20/10, 2014 at 1:26
3
I want to do something like
// server.js
app.use('/client', loopback.static(__dirname + '/../client'))
using middleware.json, but the example only works from the root
"files": {
"loopback#sta...
Celle asked 20/2, 2015 at 12:2
1
Solved
Using the Soap module in Nodejs (via loopback-connector-soap), I'm trying to convert json to xml for my soap request, but I have a few problems...
What it is:
<ns:UserDefinedFields>
<n...
Heartburn asked 24/6, 2015 at 18:54
1
Solved
Look at the loopback code in their documentation http://docs.strongloop.com/display/public/LB/Defining+and+using+roles, what I am trying to understand since start is 'cb'. I understand it is some k...
Niemann asked 19/6, 2015 at 11:21
1
Solved
At first sight they seem to do the same thing: define a one-to-many relation
So why would you choose one or another?
Prosy asked 11/6, 2015 at 14:9
5
Solved
How can i access the details of the user who raise the request from a Model Hook
Comment.beforeSave = function(next,com) {
//Want to add 2 more properties before saving
com.added_at = new Date()...
Warmup asked 14/11, 2014 at 10:24
2
Solved
It looks like the built in LoopBack models are baked with "create/modified" date fields. Is there an easy way to add this to "generated" models? I've been looking through the docs but can't find an...
Preface asked 18/2, 2015 at 21:39
1
Solved
How to move built-in models like User, Roles, User-Role-Mapping etc... to the database we've created instead of the default datasource:db? The built-in models are not listing in Arc.
I've tried cr...
Justino asked 30/4, 2015 at 18:18
1
I'm trying to use the memory-connector as a datasource when doing integration testing. But it seems to always connect to the mongodb-datasource.
One major hack i have done is to change the datasou...
Fortunio asked 30/4, 2015 at 15:21
1
I've been using Loopback to create an API. The documentation is generally really good but doesn't really answer my question about the following: how do I extend (not replace) a built in model?
The...
Skulk asked 8/4, 2015 at 12:3
1
Solved
I have a problem I can't find an answer to in Loopback's docs.
Say I have a model Company and a modelEmployee. There is an 1Xn relation between the Company and its Employees. When /api/Employees ...
Murcia asked 31/3, 2015 at 16:4
1
I'm looking for a way to customize StrongLoop LoopBack HTTP response code and headers.
I would like to conform to some company business rules regarding REST API.
Typical case is, for a model desc...
Invitation asked 20/3, 2015 at 14:56
1
Solved
Loopback has two areas where paths are set for static files:
server.js
var path = require('path');
app.use(loopback.static(path.resolve(__dirname, '../client')));
middleware.json
"files": {
...
Boigie asked 25/2, 2015 at 21:24
© 2022 - 2024 — McMap. All rights reserved.