Category "node.js"

How to query mongoDB with mongoose without having a model

so i want to query my mongo DB without using a model, let me preface this by saying, i am looking for options other than using the mongodb driver. so in one app

MongooseError: Operation 'featureds.find()` buffering timed out after 10000ms

I have a collection on MongoDB from which I'm trying to query all the elements using find(): const mongoose = require('mongoose'); const Featured = mongoose.mod

How to replace null values from output (Postman) in nodeJS?

I want to replace 'null' from postman output as 'pending' in node JS "approvedBy": null, "approvedDate": null, "wccGeneratedBy": null, "wccGeneratedOn": null, "

Cannot run the newman command on windows 10

I tried to install newman globally but no luck and here is what I did: First I installed newman as follows: Then I ran the command newman -h in another command

When I am trying get cookies it gives me error as -> TypeError: Cannot read property 'token' of undefined

I have created jwt token as follows: const jwt = require('jsonwebtoken'); const mongoose = require('mongoose'); const bcrypt = require('bcrypt'); const userSc

Method expression is not of Function type (mongoose Model)

i came across this error today and did not find a fix for it. const mongoose = require('mongoose'); const userSchema = mongoose.Schema({ name: {type:St

FATAL ERROR: Reached heap limit Allocation failed - JavaScript heap out of memory

I have a little bug in my console. Every time I try to run my app it breaks. FATAL ERROR: Reached heap limit Allocation failed - JavaScript heap out of memory 1

my command handler only recognize the top folder

i have a problem, my Command Handler only recognize the top Folder inside my Commands Directory. Its supposed to show all of the available Folder in Commands Di

DeprecationWarning: OutgoingMessage.prototype._headers is deprecated

I am deploying my angular application on tomcat server. I have run the ng build --prod command and copied my dist folder on the server. Before accessing the pag

RepositoryNotFoundError: No repository for "User" was found. Looks like this entity is not registered in current "default" connection? Typeorm

I am having a fun issue trying to get TypeOrm to work in my nestjs project. I have the below code to configure my project, yes everything loads, and yes I am ab

"Knex: Timeout acquiring a connection. The pool is probably full. Are you missing a .transacting(trx) call?" in Next.js API route

Before I was trying to connect mysql to server, I already connect mysql to my localhost and it works. But now I'm trying connect mysql to a server and it does n

async / await for Node.js https.get

I'm trying to simplify code with async / await But have problems making https.get with async / await structure. I am aware of how to do this with third-party mo

Deleting Events using Google API - Notifications 'From' coming from Admin account

I am currently working on a nest JS project that leverages the google node package to delete an event from a users calendar (gcal). Gcal successfully deletes th

How to display Google Locations reviews on my website with google api?

I know this question is common, however, I couldn't find any straight answers. All the answers have mentioned what is required to achieve this but no end soluti

'npm run watch' or 'dev' not working anymore in my computer (Laravel project), Error : '[webpack-cli] RangeError: Maximum call stack size exceeded'

I have been working on a website (using Laravel) recently, and since yesterday I have been working on JavaScript code (to implement Meilisearch). For this, I r

Shopify CLI - Shopify node serve is not working for 1 year old project

I am trying to refactor my old shopify project but, when I run command, "shopify node serve" It gives me the following error. "This command can only be run with

When i try to npm install or npm install <any-package>, i see "Cannot read properties of null (reading 'edgesOut')" and İ have package.json

When I try to npm install or npm install, I see "Cannot read properties of null (reading 'edgesOut')" and I have package.json I add screenshots, please help me,

(MERN App) All API calls returning 504 (Gateway Timeout) on Heroku deploy yet working fine locally

I have built a MERN stack app which has a few different API calls. It works as expected locally however it returns 504 (Gateway Timeout) for all the API calls w

(MERN App) All API calls returning 504 (Gateway Timeout) on Heroku deploy yet working fine locally

I have built a MERN stack app which has a few different API calls. It works as expected locally however it returns 504 (Gateway Timeout) for all the API calls w

How to run migrations with dynamic schemas?

I'm using Sequelize (Postgres) and I'm trying to dynamically create schemas and run migrations in them. In other words, I'm not using sequelize.define, because