Our images are being uploaded by the users on the web application (React) and being saved on the database by our API (Loopback). The images will be used in our Qt application and they should have round corners. We have some processing limitations so we can’t clip or mask the images on Qt. We have some out of proportion images
Tag: loopbackjs
How to insert documents if they don’t already exist from within a remote method in MongoDb using LoopBack
I’m very new to MongoDB (about 4 days in) and I’m trying to insert documents into my collection from within a remote method using Loopback without adding duplicate documents. I firstly tested adding documents as such: Which worked without issue. I then moved on to trying to add a document without adding duplicates a few other answers: However, this did
Is it possible to make hasMany relations behave like actual properties in LoopBack 4
I am building an API using LoopBack 4. Is it possible to use relations as if they were actual properties? The API stores events (e.g. concerts) in the events table in the database and event dates in the event_dates table. I have successfully added a hasMany relation to the Event model and a belongsTo relation to the EventDate model (one
Loopback passport-facebook for multiple user models
I’m using passport to authenticate users for my application using Facebook. In my application, I have 2 different users: customers and professionals (transitioning to “experts”). I followed the Loopback docs to implement the loopback-component-passport package and passport-facebook and have it working for my customers. Because I use custom User models, I followed this SO Post on how to get that