Category "backend"

Mongoose - find object and delete objeto inside array

I have this document : [ { "_id": "626c5fd2aa0fc0e4eef45c94", "productos": [ { "_id": "626d50b621180e291a330333"

Use Schema inside another Schema not working. Error: CastError: Cast to [ObjectId] failed for value

What I'm trying to achieve: Use one Schema (Ingredient Schema) inside another one (Recipe Schema). My goal is that in the Recipe Schema, my ingredients key to b

Error: listen EACCES: permission denied 8085;

I tried running the backend server but when I run the command node backend/server.js in my cmd, I'm getting this error: D:\theshoppingcart>node backend/serve

ERROR: Failed to create project. See firebase-debug.log for more info

i Found 0 Firebase projects. ✔ Enter a project id for your new Firebase project (e.g. my-cool-project) · onoja i New Firebase project onoja create

Get WooCommerce product variation attribute terms in admin products general box

I display the id and sku of each variable product in the general tab - of the wp admin product data box with the following code. Any idea how to get the the var

Getting Unsupported Media Type for .net core

I'm new in backend development and Gettig 415 Unsupported Media Type in multipart API written in .net core. I have attached the postman image for your reference

TypeORM bulk insert?

How do i bulk insert multiple records in 1 query so my db will be efficient I want to create Office and insert multiple new equipments into that office. Table/m

Error [ERR_HTTP_HEADERS_SENT]: Cannot set headers after they are sent to the client. Why?

I am having a issue while saving the image file in MognoDB. It is saying the error (node:14849) UnhandledPromiseRejectionWarning: Error [ERR_HTTP_HEADERS_SENT]

How do you add custom field to woocommerce product attribute

I want to include a simple in the edit attribute form. (/wp-admin/edit.php?post_type=product&page=product_attributes&edit=55) Is this possible? Everyt

Does firebase auth UID expires or not?

I'm goning to use auth.UID in my backend web service as api_key for each user I wounder if UID is final key or it expires/changes

Is base64 encoded image uploading a bad practice?

Is there a problem to use base64 encoding to upload (only upload) the image to the server? Considering the common image size of around 1-2 MB, not icon sized im

How to deploy nuxt frontend with express backend on AWS?

I have a Nuxt v2 SSR application as the frontend running on port 3000 I have an express API as the backend running on port 8000 I have a python script that loa

VS Code Terminal not running

when I go for console.log("hello world") my vs code terminal is not working unless I switch to java script debug terminal? any one who know the solution please

I am looking for a replacement for pgsync. Looks like the library is not supported anymore. How to sync between postgresql and elasticsearch?

Someone from the backend development side, please help with the below. we have a site driven by Postgres. We also have a elastic search implementation to make f

How do I change the backend in CoCalc to show a matplotlib scatter graph?

I have a program that is working fine locally, but I need to use it in CoCalc on the cloud to share with a group. Everything works fine until the end, when I wa

How does companies make staff users?

Apologies since this might not be the best way to word the question nor is this a coding question per say. I get the general process of creating a staff user wi

Add custom field to product inventory tab and display value only on WooCommerce admin order edit page

I have this code added to functions.php and I would like the contents of my custom field to show on the orders page of WooCommerce backend. Specifically each pr

What is the correct way to setup multiple logically organized sub folders in a terraform repo?

Currently I am working on a infrastructure in azure that comprises of the following: resource group application gateway app service etc everything I have is in

Request body is empty when posting form-data

I'm using a simple post request to my backend for a form data and for some reason the body is alwayes empty. I'm trying to isolate this so i changed the content