skip to Main Content

Error: error:0308010C:digital envelope routines::unsupported at new Hash (node:internal/crypto/hash:71:19) – Docker

after building my react docker image I tried to run docker run image_name and after that the log throw this error Error: error:0308010C:digital envelope routines::unsupported at new Hash (node:internal/crypto/hash:71:19) at Object.createHash (node:crypto:133:10) at module.exports (/app/node_modules/webpack/lib/util/createHash.js:135:53) at NormalModule._initBuildHash (/app/node_modules/webpack/lib/NormalModule.js:417:16) at /app/node_modules/webpack/lib/NormalModule.js:452:10…

VIEW QUESTION

Get an element from an array of objects with an id in mongodb using nodejs and mongoose

I've a many documents like this user:62e13ae4f9a38f7610e70bd7, _id :62e13ae4f9a38f7610e70bdb transactions:{ { "amount": 50, "category": "Bills", "type": "Expense", "date": "2022-01-20T00:00:00.000Z", "_id": "62e13ae4f9a38f7610e70be0" }, { "amount": 100, "category": "Lottery", "type": "Income", "date": "2022-01-20T00:00:00.000Z", "_id": "62e13ae4f9a38f7610e70be1" }, { "amount": 200, "category": "Salary", "type":…

VIEW QUESTION

What is MongoDB aggregate pipeline?

Using Mongoose driver Consider the following code : Connecting to database const mongoose = require("mongoose"); require("dotenv").config(); mongoose.connect(process.env.DB); const userSchema = new mongoose.Schema({ name: String }, {collection: 'test'}); const Model = mongoose.model('test', userSchema); Creating dummy document async function createDocs() { await…

VIEW QUESTION
Back To Top
Search