Tag: express

58 votes
8 answers
2.1K views
Combining two expressions (Expression<Func<T, bool>>)

I have two expressions of type Expression<Func<T, bool>> and I want to take to OR, AND or NOT of t

avatar
Kisha
0 1 0 9
asked 07 September, 2021
60 votes
22 answers
989 views
Retrieving Property name from lambda expression

Is there a better way to get the Property name when passed in via a lambda expression? Here is what i currentl

avatar
Robyn
0 1 0 9
asked 07 September, 2021
68 votes
30 answers
1.5K views
Visual Studio debugging/loading very slow

I'm at wit's end. Visual Studio is typically painfully slow to debug or just plain load ("start with

avatar
Eddie
0 1 0 9
asked 07 September, 2021
65 votes
23 answers
2.1K views
How to access POST form fields

Here is my simple form: <form id="loginformA" action="userlogin" method="post"> <div>

avatar
Kisha
0 1 0 9
asked 07 September, 2021
58 votes
11 answers
2.4K views
npm WARN package.json: No repository field

I installed Express.js with the following command: sudo npm install -g express I get the following warnings

avatar
Solomon
0 1 0 9
asked 07 September, 2021
55 votes
30 answers
1K views
Error: Can&apos;t set headers after they are sent to the client

I'm fairly new to Node.js and I am having some issues. I am using Node.js 4.10 and Express 2.4.3. When

avatar
Eddie
0 1 0 9
asked 07 September, 2021
55 votes
24 answers
2.1K views
How to get GET (query string) variables in Express.js on Node.js?

Can we get the variables in the query string in Node.js just like we get them in $_GET in PHP? I know that in

avatar
Tana
0 1 0 9
asked 07 September, 2021
53 votes
19 answers
3.1K views
Writing files in Node.js

I've been trying to find a way to write to a file when using Node.js, but with no success. How can I do t

avatar
Majorie
0 1 0 9
asked 07 September, 2021
54 votes
22 answers
607 views
Avoid "current URL string parser is deprecated" warning by setting useNewUrlParser to true

I have a database wrapper class that establishes a connection to some MongoDB instance: async connect(connect

avatar
Jeff
0 1 0 9
asked 07 September, 2021
48 votes
30 answers
434 views
Render basic HTML view?

I have a basic node.js app that I am trying to get off the ground using Express framework. I have a views fol

avatar
Clarice
0 1 0 9
asked 07 September, 2021
56 votes
23 answers
2.1K views
How do I remove documents using Node.js Mongoose?

FBFriendModel.find({ id: 333 }, function (err, docs) { docs.remove(); //Remove all the documents that

avatar
Majorie
0 1 0 9
asked 07 September, 2021