This video shows you how to insert a document into mongodb atlas collection Link: www.mongodb.co...
Пікірлер: 23
@s.suchirpatro29902 жыл бұрын
Thanks bro for this video. You saved me from big trouble.
@ShanakaMadhushan-cw8rh Жыл бұрын
short and very clear explanation..💪👍❤
@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.
@pawanbisht6797 Жыл бұрын
It's really good, thanks for helping me to connect a node js with a mongodb
@well_done_072 жыл бұрын
you are the best teacher who ever lived .. thank dude
@RamprasadShindee2 жыл бұрын
Not best , getting error ChannelModel is not a constructor .
@schadrackbotombe98992 жыл бұрын
than you havent met the net ninja
@c00per_5 ай бұрын
Why not use Post request for insert?
@ShanakaMadhushan-cw8rh Жыл бұрын
great job bro . thank you
@abdulahadpasha56942 жыл бұрын
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?
@vasupasricha4062 жыл бұрын
same error
@abdulahadpasha56942 жыл бұрын
@@vasupasricha406 have you resolved it?
@shreyjo72 жыл бұрын
you probably haven't imported the channel model
@prataptengale5448 Жыл бұрын
'new' is not needed for mongoose.Schema
@vijay17835 Жыл бұрын
thank you sir
@ShahidShaik-sm3ym Жыл бұрын
could you please share the code in the comments
@vasupasricha4062 жыл бұрын
kindly help im pasting the error message in reply
@vasupasricha4062 жыл бұрын
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
@harshitpak59872 жыл бұрын
getting error...........wasted 2 hours on this errorr :- ChannelModel is not a constructor