Thanks bro for this video. You saved me from big trouble.
@ShanakaMadhushan-cw8rh
11 ай бұрын
short and very clear explanation..💪👍❤
@pawanbisht6797
Жыл бұрын
It's really good, thanks for helping me to connect a node js with a mongodb
@anugrahyadav1934
Жыл бұрын
Hey, Vasant I really liked your content as it is short and to the point , Can you please make more videos about how to pass specific params into the database fetching process.
@well_done_07
2 жыл бұрын
you are the best teacher who ever lived .. thank dude
@RamprasadShindee
2 жыл бұрын
Not best , getting error ChannelModel is not a constructor .
@schadrackbotombe9899
Жыл бұрын
than you havent met the net ninja
@c00per_
3 ай бұрын
Why not use Post request for insert?
@ShanakaMadhushan-cw8rh
11 ай бұрын
great job bro . thank you
@vijay17835
Жыл бұрын
thank you sir
@abdulahadpasha5694
2 жыл бұрын
doing the same, but having an error in app.js... on app.get("/insert") var channelModel = new ChannelModel..... its says ChannelModel is not a constructor. what would I do, let me know please?
@vasupasricha406
2 жыл бұрын
same error
@abdulahadpasha5694
2 жыл бұрын
@@vasupasricha406 have you resolved it?
@shreyjo7
Жыл бұрын
you probably haven't imported the channel model
@prataptengale5448
Жыл бұрын
'new' is not needed for mongoose.Schema
@ShahidShaik-sm3ym
Жыл бұрын
could you please share the code in the comments
@Amityadav-zt6nm
Жыл бұрын
Nahi bhai thankxxxxx alot..
@vasupasricha406
2 жыл бұрын
kindly help im pasting the error message in reply
@vasupasricha406
2 жыл бұрын
TypeError: channelModel is not a constructor at D: ode\index.js:29:24 at Layer.handle [as handle_request] (D: ode ode_modules\express\lib outer\layer.js:95:5) at next (D: ode ode_modules\express\lib outer oute.js:144:13) at Route.dispatch (D: ode ode_modules\express\lib outer oute.js:114:3) at Layer.handle [as handle_request] (D: ode ode_modules\express\lib outer\layer.js:95:5) at D: ode ode_modules\express\lib outer\index.js:284:15 at Function.process_params (D: ode ode_modules\express\lib outer\index.js:346:12) at next (D: ode ode_modules\express\lib outer\index.js:280:10) at expressInit (D: ode ode_modules\express\lib\middleware\init.js:40:5) at Layer.handle [as handle_request] (D: ode ode_modules\express\lib outer\layer.js:95:5)
@pawanbisht6797
Жыл бұрын
Actually you are using same name for the object and the constructor So write it Const dbmodel=new channelmodel() Now it will make a new object for your channelmodel
@learningneverends6674
2 жыл бұрын
not working
@harshitpak5987
2 жыл бұрын
getting error...........wasted 2 hours on this errorr :- ChannelModel is not a constructor
Пікірлер: 23