MERN Stack Questions 4 total
MERN Stack ×
0
0
answers
1What is MongoDB aggregation pipeline?
The aggregation pipeline processes documents through a sequence of stages, similar to SQL's GROUP BY + JOINs.
**Common stages:**
- `` — f...
0
0
answers
2How do you handle authentication in a MERN stack app?
The standard approach uses JWT (JSON Web Tokens):
**Flow:**
1. User logs in → sends email + password to Express
2. Express validates cred...
0
0
answers
3What is the MERN stack and how does it work together?
MERN is a full-stack JavaScript framework combining 4 technologies:
**M — MongoDB:** NoSQL database (stores data as JSON documents)
**E �...
0
0
answers
4What is Node.js and why is it used?
Node.js is a JavaScript runtime built on Chrome's V8 engine that lets you run JavaScript on the server side.
**Why use it:**
- **Non-blocki...