• Node.js

February 07, 2022, at 10:10 PM

I'm using SWC for the first time and I'm not able to compile my ts files into normal js files

February 06, 2022, at 05:30 AM

In my Resolver, I have this update function:

February 03, 2022, at 08:30 AM

I am trying to recreate a Note Taking App using ExpressMy code follows the instructor's example but when I deploy it and try to add a new note I get the error cannot get/api/name

February 01, 2022, at 3:30 PM

I am having trouble adjusting the code (using cors) for a firebase cloud function I am working on

January 31, 2022, at 04:00 AM

Hi im having problem with express-session, it seems like not saving my user sessionHere is when I declare my session

January 28, 2022, at 02:10 AM

I am trying to use an npm package fsuipc in an electron appHowever, when I start the app I get the following error

January 26, 2022, at 3:50 PM

everyone so I have been working on a Bidding Bot to make Offers on Assests of a Collection on Openseaio

January 25, 2022, at 10:20 AM

Preface: using Nodejs w/Express to build a blog website and using multer to upload an image to mongoDB

January 24, 2022, at 01:10 AM

~/go/src/githubcom/hyperledger/fabric-samples/test-network$ peer lifecycle chaincode install simple_chaincode

January 21, 2022, at 11:30 AM

`appget('/', (req, res) => { res

January 20, 2022, at 06:50 AM

I am using this monorepo as a base templateI installed UI Kitten based on the instructions in the UI Kitten documentation

January 17, 2022, at 03:20 AM

I have a user model with two roles

January 15, 2022, at 10:20 PM

I have a collection called imported_products with documents as following,

January 13, 2022, at 5:50 PM

I have an express server that uses nginx and monitors the X-Forwarded-For header

January 12, 2022, at 1:50 PM

I've been trying to get babel core and cli to convert modern JavaScript from indexjs into bundle

January 06, 2022, at 4:10 PM

I'm just starting on backend learning and I managed to write some simple stuff with nodejs, but I also would like to test my stuff on other computers and show it to other people - even if it is for a little while, just for learning purposes

January 05, 2022, at 11:20 AM

I have created a simple discord bot in nodeI enabled "GUILD_MEMBERS" and "GUILD_PRESENCES" intents, yet when I try and fetch all members, it is only returning online members

January 03, 2022, at 9:30 PM

When attempting to set client status for a specific shard, it sets the same status for all shards

January 02, 2022, at 5:20 PM

I have a group of array values with 'Working_date' and 'Working_hours' as given belowThese dates can be any dates but most probably they will be consecutive dates

December 30, 2021, at 11:00 PM

I've a reset password feature and this page is only accessed via a token that is sent to the user that requestIt's a simple form to update the DB with the new password

December 29, 2021, at 12:50 PM

Hello I am a new coder but I am having troubles trying to add a new user (req) to a json file of users I have for a fake bankI'm more confused on the type of object these are and how to access them from data

December 27, 2021, at 3:30 PM

I am trying to make this video possible to play in Safari on iOS: https://ekgcampcom/api/videos/video1

December 26, 2021, at 07:50 AM

I'd like to store encrypted passwords on FirebaseWhen the user types in their password, I want the code to pull the encrypted password on Firebase, decrypt it, and compare if it matches the user-entered password

Show more
How to use $.when in node.js? [duplicate]

How to use $.when in node.js? [duplicate]

This question already has an answer here:.

Add node to Tree

Add node to Tree

I decided to use nested sets model. [nnn]My table has columns: id, name, lft, rgt, parent_id.

javascript/jquery: on click copy relevant array items to new array

javascript/jquery: on click copy relevant array items to new array

I think I'm missing an obvious answer. I have an array of arrays, like this.