Is there a way to edit an image before saving it to the database?
Our images are being uploaded by the users on the web application (React) and being saved on the database by our API (Loopback).
Our images are being uploaded by the users on the web application (React) and being saved on the database by our API (Loopback).
Am new to loopback 4, I want to get the user IP address, their domain details, user agent and the url they are trying to access so on so i wrote a sequence, i have accessed the request context but couldn’t get the exact key to find out the details am looking for
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 error, on duplicate key insertion.
How do I obtain the sum of a Loopback PersistedModel?
I am using loopback
for storing Image to the server
.
I see that LoopBack has the Express 3.x middleware built-in. Indeed, body-parser is in loopback/node_modules
. But I cannot figure out how to use it as middleware. I have never worked with Express 3.x, so maybe it’s just that. require
does not work, obviously, unless I install body-parser as a dependency in my project.
I’m currently running two StrongLoop LoopBack apps (Nodejs apps) on a single server with different ports. Both apps were created using slc lb project
and slc lb model
from the command line.
How is it possible to execute raw query and expose results through REST API with strongloop?
I created a simple file uploading application with loopbackjs.
In the application’s client side I used simple HTML and Javascript code, calling a loopback api with an AJAX call:
I have defined several models that use a Datasource “db” (mysql) for my environment.