Questions tagged [nodejs-server]

No instructions have been provided for this tag at the moment!

Is the getBalance() function malfunctioning while connected to the internet?

Hello there! I need some assistance in resolving an error that I'm facing. Here are the details of the issue: I am using NodeJs with Web3.js to retrieve the balance of an account address in Blockchain using the 'getBalance()' function. The code runs perfec ...

Issues encountered with the rpush() and lrange() functions in Redis when used with Node.js

When using the rpush method to store a list in Redis and lrange to retrieve the list elements in Node.js, I encountered an error stating that rpush and lrange are not functions. To address this issue, I followed the Redis Node documentation and used RPUSH ...

Are there built-in security features in NestJS?

Are there any default security practices that NestJS handles automatically? If not, what suggestions do you have for securing a NestJS application aside from using helmet? I noticed in the NestJS middleware documentation an example utilizing the helmet dep ...

I am unable to access a file on the server even after exposing it using express

In my current project, I am facing a challenge with storing and allowing end users to download text files dynamically from the browser. While the ideal solution would involve using an object store like MINIO or S3, I am limited to using in-memory storage a ...

Storing blank information into a Mongodb database with Node.js and HTML

Can someone please assist me with solving this problem? const express=require("express"); const app=express(); const bodyparser=require("body-parser"); const cors=require("cors"); const mongoose=require("mongoose"); ...

Searching for nested sub documents in Node.js using Mongoose

I have a schema structure as follows: const propertiesSchema = new Schema({ name: { type: String, required: true }, shortDescription: String, totalArea: String, address: { type: mongoose.Schema.Types.ObjectId, ...

Querying: How come the user's role remains unchanged in MongoDB even after an edit?

I am currently working on developing an authentication system using Node.js/Express.js with MongoDB. The goal is to allow users with different roles and save their parameters in the MongoDB database. Upon signing up, all users will be assigned the role of ...