Questions tagged [loopback]

In telecommunications, loopback, or a loop, is a hardware or software method which feeds a received signal or data back to the sender.

In telecommunications, loopback, or a loop, is a hardware or software method which feeds a received signal or data back to the sender. It is used as an aid in debugging physical connection problems. As a test, many data communication devices can be configured to send specific patterns (such as all ones) on an interface and can detect the reception of this signal on the same port. This is called a loopback test and can be performed within a modem or transceiver by connecting its output to its own input. A circuit between two points in different locations may be tested by applying a test signal on the circuit in one location, and having the network device at the other location send a signal back through the circuit. If this device receives its own signal back, this proves that the circuit is functioning.

1273 questions
3
votes
1 answer

Loopback 4: Debug SQL Statements

I'm new to Loopback. I have used Sequelize ORM in the past, and I'm used to seeing Sequelize output the SQL statements to the Console. How can I do the same with Loopback 4? I've done extensive searching on the web, and I found a place where they…
Peruz Carlsen
  • 572
  • 2
  • 10
3
votes
2 answers

Loopback 4: Many to Many Relation

I am trying to implement a way to filter data in tables which have ManytoMany relationship. I have following tables job, job_category and category. So far I am thinking in do a query to job_category using job_id and then use that result to add a…
Eduardo
  • 1,781
  • 3
  • 26
  • 61
3
votes
1 answer

Loopback 4 What is a Repository?

I am having a hard time understanding the concept of Repositories in Loopback 4 the documentation says: A Repository represents a specialized Service interface that provides strong-typed data access (for example, CRUD) operations of a domain model…
mmahgoub
  • 3,910
  • 3
  • 20
  • 19
3
votes
1 answer

Nodejs Loopback 4 add bearer token config into swagger explorer

I'm using Nodejs loopback 4 to build API project and using JWT token for authentication component. But when I explore built-in swagger of loopback (localhost:3000/explorer as default) then navigate to one of my API url, there is no input place for…
Quoc Van Tang
  • 1,075
  • 4
  • 15
  • 33
3
votes
2 answers

Loopback 4 and Mongodb : All model's id are null on response

It is the first time that I use this version (4) for development and I have a problem with loopback and mongodb indexing. Of the two ids that are inside the db loopback it does not collect any. It's a problem of the API or DB? Model…
3
votes
1 answer

How can I send a stream containing an image file to a remote method in loopback?

I am currently trying to produce an API using loopback that allows me to send a 28x28 image file of a handwritten character and have the image processed by a tensorflow network and return the prediction of what the network thinks the character is.…
Glenn Keates
  • 121
  • 8
3
votes
1 answer

Loopback 4 - HasMany relation included in fields

I am trying to setup the relation HasMany with the new Loopback 4 framework. I have the following model: import {Entity, model, property, belongsTo, hasMany} from '@loopback/repository'; import {User} from "./user.model"; import {OrderProduct}…
hanego
  • 1,595
  • 1
  • 14
  • 27
3
votes
1 answer

Swagger: skipping unknown type "dateTime"

I am getting below warning/error while specifying the data type for date and time in swagger spec for loopback. Below is my loopback user.json file "properties": { "schedule": { "type": "dateTime", "required": true }, …
Hemadri Dasari
  • 32,666
  • 37
  • 119
  • 162
3
votes
1 answer

EISDIR: illegal operation on a directory, read + Nodemailer image attachment

I just wanted to know how to specify the path in attachments in Nodemailer. I am getting this above-mentioned error. Can anyone specify how to specify the path? var imagePath = path.join(__dirname, '/images/') attachments : [{ …
Sree Nath
  • 543
  • 6
  • 19
3
votes
0 answers

How to do the realtime graph using victory?

may I know how to do the realtime line chart using victory? The victory library: https://github.com/FormidableLabs/victory
Temperature
johnhour
  • 119
  • 3
  • 14
3
votes
1 answer

Loopback - How to use bulkUpdate method

I'm using Loopback v3 currently and wanted to upsert many records at once in a collection; I found this method bulkUpsert from the documentation (http://apidocs.loopback.io/loopback/#persistedmodel-bulkupdate) but I couldn't figure out how to make…
Jee Mok
  • 6,157
  • 8
  • 47
  • 80
3
votes
2 answers

How do I test HttpListener() using localhost?

I'm working on an app that uses HttpListener() extensively. So far I've been doing all my testing on an actual network, but I'm pretty sick of this now. I've tried the usual suspects (localhost, 127.0.0.1) with the correct port, but nothing…
Tom Wright
  • 11,278
  • 15
  • 74
  • 148
3
votes
1 answer

Loopback Update property Array of Object

I'm use loopback and mongodb. Right now I have a Model and one of its property type is array of object. The document in mongo will look like this { "id": "123123213", "name": "Some Name", "colors": [{ "colorId": "1" "colorName: "Red" …
Anton
  • 75
  • 7
3
votes
3 answers

Loopback filter like case insensitive

How to user case insensitive where filter in loopback with postgresql. I have trued using pattern = new RegExp('.*'+data+'.*', "i") but not working. My code is searchUsersAppointment(data): void { let cpr = /^\d+$/.test(data); let pattern =…
Nijesh W
  • 39
  • 1
  • 6
3
votes
3 answers

Can't access site hosted on local VM from Edge

I have a site running on a local VM (VMWare Workstation, CentOS7). I can access it just fine from Chrome, Firefox and IE11, but Edge simply doesn't work. I've tried running CheckNetIsolation LoopbackExempt -a…