I saw many vedios from herry bhai and many other channels but this project serious is osm make clear each and every thing line by line thanks for this sir❤
on 16:05 min in this video ,you use( let user=new User(req.body)) . how to use this in MySQL? I am using MySQL for this project and it returned me blank object {} please help me
hi, trying to run post, getting error "Cannot GET /login" app.post("/login", (req, resp)=>{ resp.send('App is sending !!') }); But same time if call get, its working app.get("/login", (req, resp)=>{ resp.send('App is sending !!') });
solved it.....when we use it in browser(google)...it is auto matically sends a "get" api.....try it in post man...and set api type to post....it is working for it.
everything is working fine, but at the last minute of video when we write "await" , from there my postman is not showing data in response and mongodb is aslo not updating its data. please provide solution
User.js const mongoose = require('mongoose'); const userSchema = new mongoose.Schema({ name:String, email:String, password:String }); module.exports = mongoose.model('user', userSchema); The first argument is the singular name of the collection your model is for. Mongoose automatically looks for the plural, lowercased version of your model name. Thus, for the example above, the model user is for the users collection in the database.
if (schema == null || !('pluralization' in schema.options)) { ^ TypeError: Cannot use 'in' operator to search for 'pluralization' in undefined plz solution sir \
Aapne postman k baare me bina kuch btaye hi uska use kr liya... aise me kaise smjh aayega... pehle postman k bare me to batao ki kya h or kaise use ho rha h...
if (schema == null || !('pluralization' in schema.options)) { ^ TypeError: Cannot use 'in' operator to search for 'pluralization' in undefined;;;;;;;;;;;;;;;;;;;;;;;;; plz solution sir
User.js const mongoose = require('mongoose'); const userSchema = new mongoose.Schema({ name:String, email:String, password:String }); module.exports = mongoose.model('user', userSchema); The first argument is the singular name of the collection your model is for. Mongoose automatically looks for the plural, lowercased version of your model name. Thus, for the example above, the model user is for the users collection in the database.
User.js const mongoose = require('mongoose'); const userSchema = new mongoose.Schema({ name:String, email:String, password:String }); module.exports = mongoose.model('user', userSchema); The first argument is the singular name of the collection your model is for. Mongoose automatically looks for the plural, lowercased version of your model name. Thus, for the example above, the model user is for the users collection in the database.
I saw many vedios from herry bhai and many other channels but this project serious is osm make clear each and every thing line by line thanks for this sir❤
Thank you so much 😀
one thing that is different from other creator is that he type slowly and make us understand each and every line
that's really great.............
I have no words for you, you are amazing bro how can i grate you ❤❤ loves from nepal bro
Learning with great knowledge shared by u in simple manner
Really...
Grate narration
Thanks bro 😊
Love your way of teaching
sir every line understand in video..nice learn sir...
You are really a good teacher.
Thanks for making this series.
Our pleasure!
Perfect playlist for me thank you very much sir
on 16:05 min in this video ,you use( let user=new User(req.body)) .
how to use this in MySQL? I am using MySQL for this project and it returned me blank object {}
please help me
When I use the post method it is not working...😢
thank you bhai so much
hi sir how are you im shahzad khan from pakistan
hi,
trying to run post, getting error "Cannot GET /login"
app.post("/login", (req, resp)=>{
resp.send('App is sending !!')
});
But same time if call get, its working
app.get("/login", (req, resp)=>{
resp.send('App is sending !!')
});
Yes same here
Yes it's right bro
yes bro...same issue...did u solved it??
solved it.....when we use it in browser(google)...it is auto matically sends a "get" api.....try it in post man...and set api type to post....it is working for it.
Thank you so much
Sir pehle vala video me hi app crashed ho gai hai vo hi solved nahi ho raha hai plz uska kuch bataye
sir github link kahan hai ?
getting error "Cannot find module './db/config'", can anyone help??
ensure that the path is correct
excellent
Cool
Hi Sir, Have you shared code so that we can check with demo also.
please share code link
Sir mujhy aik error arha
Is line me
let user =new User(req.body)
Aur error yeh hai k user is not a constructor
Yes bro please implement jwt and bcrypt in that project.
everything is working fine, but at the last minute of video when we write "await" , from there my postman is not showing data in response and mongodb is aslo not updating its data. please provide solution
Bro, you should reload it, if still not working then you should try without async
@@virendramajhi8703bro data is showing on postman body but not on mongodb database what to do even after refreshing
User.js
const mongoose = require('mongoose');
const userSchema = new mongoose.Schema({
name:String,
email:String,
password:String
});
module.exports = mongoose.model('user', userSchema);
The first argument is the singular name of the collection your model is for. Mongoose automatically looks for the plural, lowercased version of your model name. Thus, for the example above, the model user is for the users collection in the database.
Next video kab tak aayege bro?
if (schema == null || !('pluralization' in schema.options)) {
^
TypeError: Cannot use 'in' operator to search for 'pluralization' in undefined
plz solution sir \
Can I use my JSON server for this Project?
thnx a lot sir
Where is github link
Sign up page to product page date not show please help
Aapne postman k baare me bina kuch btaye hi uska use kr liya... aise me kaise smjh aayega... pehle postman k bare me to batao ki kya h or kaise use ho rha h...
if (schema == null || !('pluralization' in schema.options)) {
^
TypeError: Cannot use 'in' operator to search for 'pluralization' in undefined;;;;;;;;;;;;;;;;;;;;;;;;;
plz solution sir
id nhe show ho rhe hai mongotool mai
sir bycript and jwt token bhi Implement kry please .............
Aapka github link kahan hai bhai..
API post request not working what to do??
not working for me too. throwing 404 error
For me also its throwing error 404
User.js
const mongoose = require('mongoose');
const userSchema = new mongoose.Schema({
name:String,
email:String,
password:String
});
module.exports = mongoose.model('user', userSchema);
The first argument is the singular name of the collection your model is for. Mongoose automatically looks for the plural, lowercased version of your model name. Thus, for the example above, the model user is for the users collection in the database.
sir, new keyword ka kyu Kiya hain in nodejs??
To make object from class constructor
@@codestepbystep sir.easy language mein Samjha dijiye please. Mujhe new keyboard mai badi confusion hothi hain.
where is your github link
Getting error at this line
let user = new User(req.body)
TypeError: User is not a constructor. Please suggest anyone
tried below line in User.js file it worked for me...
const User = new mongoose.model("User",userSchema)
module.exports = User
Thanks sir
Sir github ka code nhe mil rha ?
you have not told about postman you just directly used it
Apka github ka link kahan hai.
How to run project from cloning after github....react project like this please 🥲🥲🥲🥲
where is sorce code
I got an errror saying User is not a constructor
I think while exporting you have used module.export(without 's' ) where as it should be "module.exports"
@@AkashGauravchannelthanks
same problem
❤
Add date range picker interact js
where is github code😮💨
how to get code
👍👍
not working
sir error aahe ..mango data ch insert hot nahiye
Same mongo db me insert nahi ho Raha data
Please tell solution
User.js
const mongoose = require('mongoose');
const userSchema = new mongoose.Schema({
name:String,
email:String,
password:String
});
module.exports = mongoose.model('user', userSchema);
The first argument is the singular name of the collection your model is for. Mongoose automatically looks for the plural, lowercased version of your model name. Thus, for the example above, the model user is for the users collection in the database.
Restart the server
i hate postman
Our Coach @Anil_siddu