I Write My code like this but it has error, How to rewrite this code db.collection('collection_name').insertOne({ name:req.body.name, details:[{ age:req.body.ag
What is the reason behind this error? this code I am using to connect to DB. const uri =`mongodb+srv://${process.env.DB_USER}:${process.env.DB_PASSWORD}@cluster
I convert to ArrayBuffer using the function base64ToArrayBuffer but I'm getting an error that says it's not ArrayBuffer and the key is the type of CryptoKey. I
//** If I'm adding a new document with the name: "India", then I don't want that the DB allow another name with the name: "INDIA", "india", "indIA", etc. I'm ne
So here, I am using NodeJS with Express Js. I have stored the JSON value from an API in a variable and I am trying to show the JSON output on my HTML page, I a
I am connecting to a mysql database from node using mysql2 and have been experiencing intermittent illegal-mix-of-collations errors - see this question. The col
I'm new to digital signatures and how to use them, so I can't complete my task. Sign the hash with the CADES-BES signature. Insert a new element with a Base64
I have this mongoose schema const PictureSchema = mongoose.Schema({ user: { type: mongoose.Schema.Types.ObjectId, ref: 'User', requi
trying to setup node.js code i want to setup simple if and else can anyone help to setup if and else // To use any npm package on Pipedream, just import it i
This is the code used, there is nothing (I think) that's causing it to repeat, matter of fact I added something so it stops repeating but it didn't do anything
I am trying to run the node of ganache but getting this error.please resolve my problem.
I'm using JWT - jsonwebtokens in Nodejs. I'm creating a token and want to throw an error if the token expires. My token is created successfully and I'm checking
I'm running npm install --timing, and when it completes it will output something like: npm ERR! A complete log of this run can be found in: npm ERR! /Users/
I was debugging this dht implementation when I came across this query response (KRPC type r). Theres no documentation about an "ip" field in BEP5, so why is thi
I am trying to detect the color matrix applied to a filtered image so that I can apply a reasonably close approximation of the filter using fabric. Does anyone
enter image description here This error is showing when I connect the MongoDB now how can I solve it
Given something like my-module.ts that will be called by an external consumer that of course cannot do dependency injection to this module's constructor: import
I have followed many solutions provided in the previous questions but mine is not working. The problem is in .json extension. Whenever I use filename.json, the
Got such result when using ssh2 in electron: [?2004l [?1h= [1;24r[m[m[0m[H[J[2;1H[1m~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~[0m[24;63H0,0-1[9CAll[6;32HVIM -
i am trying to publish a simple (there is only a js file inside) scoped NPM package on my company's Artifactory. I followed all the documentation available both