2,844 questions
- Bountied 0
- Unanswered
- Frequent
- Score
- Trending
- Week
- Month
- Unanswered (my tags)
0
votes
1
answer
495
views
Correctly translate text with Markdown using deepl-node
I am trying to translate XML documents using my NodeJS/Loopback 3 server, as well as the deepl-node library.
My code so far looks like so:
const { Translator, TextResult } = require('deepl-node');
...
0
votes
1
answer
448
views
How to handle multiples environments (dev/prod) in one nodejs app?
I'm not sure if it is possible to do something like this.
I have two Reactjs project p1 and p2. For the server, I'm using Loopback3 and MongoDB. Both projects will connect to one server.
What I want ...
0
votes
1
answer
127
views
Loopback `include` generates multiple queries instead of one join query
I have two models Main & Trans (one to one association)
import {Entity, hasOne, model, property} from '@loopback/repository';
import {Trans, TransWithRelations} from '.';
@model({
settings: {...
0
votes
2
answers
95
views
LoopBackJS 3 - Problem with query - Exact ids of Array of objects
How to get conversations that have exact matching ids in the "conversation_members" array using Loopback?
I have a collection in Loopback with the following structure:
"conversation&...
1
vote
0
answers
145
views
Keeping getting server and network error when trying to retrieve data from my LoopBack api
When I open my loopback API in Firefox try and use the GET commands for the controllers on my user and plant collection from my mongodb
I get this response from the Curl
curl -X 'GET' \
'http://[::1]...
0
votes
1
answer
176
views
Loopback join relation without selecting relation
I'am trying to build a query with loopback 4 with relation between 2 entities
customer.model.ts:
@model()
export class Customer extends Entity {
// id, name properties
@hasMany(() => Order)
...
1
vote
0
answers
266
views
Loopback 4 - JWT authentication - error with given UserRepository
First of all, I have to say I'm new to TypeScript and moreover that since I cannot find a single tutorial about LB and JWT authentication that seems to work correctly from the beginning to the end I ...
1
vote
1
answer
429
views
Loopback 4 - Creating database tables for built-in models?
For LB3 there is specific documentation on how create database tables for built-in models, but for LB4 it seems missing, the closest thing I could find is this page in the migration guide, but it just ...
0
votes
1
answer
233
views
how to change the response of api in loopback, how to change in js file corresponding to a json model
I have a model, using postman I am sending request to this model, and in response I am getting the complete record(suppose 25 columns I have), so in response I am getting 25 columns back. I want to ...
1
vote
0
answers
507
views
Helmet is not working to set security headers for static files
I am using loopback , for setting header inside server.js I'm using helmet but its only working for api's but not for static files. What might be the probable cause of this?
0
votes
1
answer
143
views
Loopback-next ReferenceMany Unable to find _id
I have user Model, which reference to ListedStocks,
@referencesMany(
() => ListedStocks,
{},
{
mongodb: {dataType: 'ObjectId'},
},
)
stockIds?: string[];
But when i try ...
1
vote
1
answer
214
views
how to use http2 in loopback 4 application?
We are planning to implement http2 in a loopback 4 application. We had used http, socket servers but never http2.
What is the procedure to use http2 in my application?
0
votes
1
answer
209
views
Trying to add dependency json schema using loopback mongodb
I wanted a dependency schema using mongodb loopback.
My Post requests:
REQUEST TYPE 1
{
"url": "google.com"
"type": "redirect"
}
REQUEST TYPE 2
{
"url": "yahoo.com"
"type": "anchor"
}
...
0
votes
1
answer
221
views
Loopback 3 updating model properties ensure old data is converted correctly without data loss
So I am using Loopback 3 atm, and I am currently updating the properties of my model. Problem is that the structure will be different as before as certain properties are now split into 2 separate ...
0
votes
0
answers
280
views
where condition in loopback 4 with column of other models
I have a query made through the filter on multiple models in cascade. I would like to use a column of the first level (ModelA) in the where conditions of the underlying levels, is it possible?
example:...