Category "node.js"

Not able to display fetched data on page, React JS

I am unable to display fetched data on page. Here I am using ReactJS for frontend and NodeJS for backend. To store data I am using blockchain (hyperledger fabri

How to modify & replace the key an object by comparing it with other objects?

I have an array of object which consists some id's as a key. const sampleObj1 = {0011:[{},{}], 0022:[{}, {}], 0033:[{},{}]} const sampleObj2 = [{id:0011, name:'

npm err! code 1 in the vscode during installation for Angular

I'm trying to execute a code I have downloaded from the github in my machine. I have set the ambient for angular in the vscode and the issue npm ERR! code 1 is

GridFS Large File Download Crashes the Node.js Server. MongoServerError: Sort exceeded memory limit of bytes

So I'm running a Node.js server with mongoose and I've been trying to download a large file using the GridFS node package but I've been getting the following er

How do i connect to websocket URL from website?

i'm trying to get the update values from website, i manage to connect but i cant get the values, i dont know if i'm doing anything wrong. this is what i'm tryin

Find html text between two tags using jquery or cheerio

I thought that this would be rather straightforward but nothing really much work. I am writing this using cheerio in node js. Basically, I have the following HT

How to make code run every request for a GET api

const http = require('http'); const url = require('url'); const fs = require("fs"); const host = 'ip'; const port = 1234; let requestListener = function (req,

`useTheme` must be used within `NativeBaseConfigProvider`

In my project I faced the above error can anyone tell me how to solve this error. The error I faced is: Error: useTheme must be used within NativeBaseConfigProv

When making an API call to a Node.js REST API, how can I view which portion of the code it uses?

I have a REST API that was built with Node.js and Express.js. When making an API call, how can I view which portion of the code it uses? (without me having to i

MongoDB, get documents by a field, and mergeObject from another collections grouped count

Okay, the title is a bit too verbose and complicated but I have no idea how to put it any better. So here's what I have ModelA ModelB that has reference to Mode

how to search or find the data into array and also again into array mongodb

how to find the data into arrays of arrays. I want to find data that is stored in the array. When we got the data and send response with parent id. here schema

React-map-gl with mapbox on NodeJS map -- map is not showing up

I was following a youtube tutorial and followed the steps exactly, however, my map does not seem to work. I get a blank screen even when I put my own access tok

Error while reloading nextjs server while using mongoose [duplicate]

I am using NextJS as my framework along with Mongoose. I have seen a few tutorials to implement caching for Mongoose but everytime I make some

graphql mutation giving error while creating record

here is my scheme, I wasnt to create one record so when i am passing field in graphql it is showing error const { BookTC } = require("../model/book"); const { B

How to query to get n level depth nodes in neo4j

I want to write a query that will fetch the ciphers(nodes) along with its child nodes to the n-level. e.g. if any child is having 1 child node and that child n

Not able to send files data from front-end (react.js) to back-end (node)

I have an application that stores to its state files' content, whether images, audio or both, as shown here with the mediaAudio object key: In my react.js code

npm ejs install error: 5 vulnerabilities (1 low, 4 critical)

I was trying to download EJS and i got this error: npm WARN deprecated [email protected]: Deprecated, use jstransformer npm WARN deprecated [email protected].

Localhost refused to connect in Visual Studio code

Im working on a node.js file and when I run the API I get a ERR_CONNECTION_REFUSED error on chrome.The Error Page

how to update older node project with ts and js scripts

What should I do if I want to run an older node.js project from GitHub? Eg. project: jaystack odata-v4-server-mysql-example (6 years old, at that time, node.js

Schema for saving a lot of questions MongoDb

If I have a survey application for child tracking what is the best way to save survey questions in MongoDB? Knowing that survey is divided into stages (about 12