MongoDB & Node.js: Connecting & CRUD Operations (Part 1 of 4)

MongoDB & Node.js: Connecting & CRUD Operations (Part 1 of 4)

MongoDB

4 года назад

180,668 Просмотров

Ссылки и html тэги не поддерживаются


Комментарии:

@nabeelengineer7397
@nabeelengineer7397 - 11.06.2021 02:49

Thank you

Ответить
@kartikeyaagrawal5917
@kartikeyaagrawal5917 - 23.06.2021 10:07

simple and clean video to learn. aweeeeesome

Ответить
@graziacassano9263
@graziacassano9263 - 15.07.2021 15:35

Hi, very useful! Anyway I already created CRUD routes that spoke to the local host and I was looking for "how to connect express to mongoDB" nd found you video but HOW DO I MAKE THE CONTENT I CREATED IN THE DB APPEAR ON THE WEB PAGE? Please let me know.

Ответить
@atanusamanta3835
@atanusamanta3835 - 19.07.2021 12:52

Hey, can you tell how to use mongodb schema validation with collection in node js ? It will be very helpful.

Ответить
@Aiducateur
@Aiducateur - 27.07.2021 11:20

Thanks for taking the time to sooooo clearly explain the basics!!!

Ответить
@truongbuipv
@truongbuipv - 07.08.2021 21:22

But I'm using mongoose

Ответить
@melody_connor
@melody_connor - 11.08.2021 11:36

who else is watching on 0.5x speed?

Ответить
@tropic44
@tropic44 - 26.08.2021 14:06

thank you for your great work

Ответить
@abdabdabd886
@abdabdabd886 - 18.09.2021 09:41

I think you are going too fast for a beginner, you are explaining very little about the things you are doing, I wanted an in-depth explanation for ex: MongoClient, what it is and what it does, I think this video could have been improved a bit further

Ответить
@mashleyelliott4668
@mashleyelliott4668 - 22.09.2021 17:01

Super helpful! Thanks Lauren. You are awesome. You have great taste in glasses.

Ответить
@Salon00
@Salon00 - 23.09.2021 20:46

I came here from the last stream, very helpful!

Ответить
@PretendCoding
@PretendCoding - 05.01.2022 08:04

Thank you!!! More people should make videos like this. A lot times it's "Ok so we'll start by installing these 8 frameworks" when they're teaching one thing. Like... I just want to know about the one thing. This has helped me so much more than any other tutorial on the topic I've watched. Thank you again

Ответить
@taylorbarron4950
@taylorbarron4950 - 07.01.2022 20:02

It's not very often that documentation is intuitive. Kudos for making a step by step that helps us beginners

Ответить
@alex45779
@alex45779 - 10.01.2022 20:57

Спасибо огромное за уроки! Очень познавательное видео!

Ответить
@rayt.633
@rayt.633 - 17.01.2022 20:27

good job. concise tutorial. seems more flexible than mssql so far…

Ответить
@legendry
@legendry - 20.03.2022 12:13

Great video. It was super fun to watch.

Ответить
@rishengopaldass1103
@rishengopaldass1103 - 22.03.2022 09:30

Thank you. Really good content.
How does Mongodb handle images and other file types?

Ответить
@janavdhingra2409
@janavdhingra2409 - 27.03.2022 20:16

This is a big help! Thank you!

Ответить
@sardendibs
@sardendibs - 29.03.2022 19:40

Too many unanswered questions here: 1) How to make this work with client-side and server-side js? E.g. my client-side code returns "not a function" for "client.db" after following this. 2) Were "sample_airbnb" and "listingAndReviews" already created somewhere else? How will I create my own database and collection using code? 3) How to insert a pre-defined object instead of writing the data directly into the function as here? Basic questions, I am sure, but I came here to learn the basics of setting this up. I didn't.

Ответить
@roshanthapa25
@roshanthapa25 - 31.03.2022 21:01

Amazing

Ответить
@kittisakphatchaiphongsa3177
@kittisakphatchaiphongsa3177 - 04.04.2022 12:01

Thx you very much

Ответить
@EdgarLindo
@EdgarLindo - 27.05.2022 18:33

Why are you guys using the full string for the connection? isn't it a security risk? why don't you process a .env instead?

Ответить
@anirudhvasistha6136
@anirudhvasistha6136 - 29.05.2022 12:17

Hi Team, I have a question, please help.

Let us say that I have a list of employees. Now I want to increment Salary of all employees by +100 based on the employee ID that I receive.

So, If employee ID not not existing in the DB, I should add the empID and then update the salary, inthis case Salary will be 100. ( 0+100).

I am using forEach on employeeID list and for each employeeID, I am calling updateMany.



This doesn't work the first time when I run. ( Only first record of the list gets updated and remaining are left. ) when I run 2nd time the same query, all the elements in the list get updated correctly

Ответить
@Kaczka-xv6jj
@Kaczka-xv6jj - 31.05.2022 17:02

Thanks <3
You are awesome. You saved my ass

Ответить
@aryamannverma
@aryamannverma - 01.06.2022 06:14

Thanks for the video, It was very helpful for me to start understanding mongoDB & CRUD as a beginner. Can I ask what theme you're using on VScode, it looks very clean & readable

Ответить
@mohammadyaseen5339
@mohammadyaseen5339 - 23.06.2022 21:46

I have a problem . I am connecting my app to mongo cluster but it give me error ..can anyone help me

Ответить
@stefanw8203
@stefanw8203 - 29.06.2022 12:09

Thanky you for providing this brillant content.

Ответить
@NathanielBabalola
@NathanielBabalola - 02.07.2022 03:23

I tried the create method but it returns an error saying
MongoNotConnectedError: Client must be connected before running operations

Any help?

Ответить
@violentblush960
@violentblush960 - 14.07.2022 04:08

I have followed this tutorial and the next day I wanted to continue but somehow when I go node demo.js my terminal doesnt connect and nothing happens even though I added an ip address of my new location and connect link including my password and username is still present. Do you have any idea why I might not be able to connect to mongoDb through my terminal?Thanks in advance.

Ответить
@shifureisaikyou2055
@shifureisaikyou2055 - 01.08.2022 00:42

username in plaintext in the code is vulnerability

Ответить
@MeezanTheFairBloke
@MeezanTheFairBloke - 02.08.2022 10:27

Super helpful video, imposter syndrome inducing but super helpful! Thank you!

Ответить
@ashishkashyap8021
@ashishkashyap8021 - 24.08.2022 09:26

Good Job. Thanks!

Ответить
@oliverxu7964
@oliverxu7964 - 30.08.2022 04:50

Thanks for sharing! it's a very good tutorial!

Ответить
@miguelrolo55
@miguelrolo55 - 02.11.2022 14:23

Wow! I learned a lot with this video 😁Mongo is my first choice right now, using MERN technic. It's been 1 year but still a very good video! Thank you so much Lauren Schaefer and MongDB team!!! Wish you best!
Hugs from Portugal 🧡🧡🧡🧡

Ответить
@giorgikalandadze9263
@giorgikalandadze9263 - 06.11.2022 01:08

Great Explanation <3

Ответить
@syednoohu8692
@syednoohu8692 - 15.11.2022 05:34

Love to see more on mongoose rather mongoclient, Thanks

Ответить
@ashoksanjeev675
@ashoksanjeev675 - 24.11.2022 05:41

helpful video, Love the way Lauren explained in the video with the examples, Thanks Lauren and MongoDB team

Ответить
@soumyakasarapu9805
@soumyakasarapu9805 - 01.12.2022 17:50

I have databases in my cluster but I'm getting empty array for list of databases. Can anyone help me onthis

Ответить
@AlbrechtJ
@AlbrechtJ - 18.12.2022 06:54

Thanks for a tutorial.

Ответить
@CdLf-dv6vo
@CdLf-dv6vo - 01.01.2023 05:14

Honestly this video helped me so much, I was stuck but now able to move on. Thanks alot and I definetely will watch your videos you explain in detail Keep up the good work....

Ответить
@peterballa6060
@peterballa6060 - 01.02.2023 16:17

Great video, thank you!

Ответить
@its_j10
@its_j10 - 03.02.2023 16:07

how to update by id?

Ответить
@victoria-exito
@victoria-exito - 01.06.2023 20:09

With the magic of edition I magically got lost 😓

Ответить
@yesno5286
@yesno5286 - 21.07.2023 23:17

TypeError: client.db(...).admin(...).listDataBase is not a function ... this video is out of date :)

Ответить
@sirfara
@sirfara - 03.11.2023 16:38

Thanks a lot, Lauren!👏

Ответить
@yvonvoukeng7462
@yvonvoukeng7462 - 14.11.2023 17:53

I'm encountering a bug when executing the document insertion code.

MongoServerSelectionError: EC230000:error:0A000438:SSL routines:ssl3_read_bytes:tlsv1 alert internal error:c:\ws\deps\openssl\openssl\ssl\record\rec_layer_s3.c:1586:SSL alert number 80

at EventTarget.<anonymous> (E:\Pour_Ades\Tutorial2\node_modules\mongodb\lib\sdam\topology.js:276:34)
at [nodejs.internal.kHybridDispatch] (node:internal/event_target:807:20)
at EventTarget.dispatchEvent (node:internal/event_target:742:26)
at abortSignal (node:internal/abort_controller:369:10)
at TimeoutController.abort (node:internal/abort_controller:391:5)
at Timeout.<anonymous> (E:\Pour_Ades\Tutorial2\node_modules\mongodb\lib\utils.js:1010:92)
at listOnTimeout (node:internal/timers:573:17)
at process.processTimers (node:internal/timers:514:7) {
reason: TopologyDescription {
type: 'ReplicaSetNoPrimary',
servers: Map(3) {
'ac-ayeezbh-shard-00-02.foscwbb.mongodb.net:27017' => [ServerDescription],
'ac-ayeezbh-shard-00-00.foscwbb.mongodb.net:27017' => [ServerDescription],
'ac-ayeezbh-shard-00-01.foscwbb.mongodb.net:27017' => [ServerDescription]
},
stale: false,
compatible: true,
heartbeatFrequencyMS: 10000,
localThresholdMS: 15,
setName: 'atlas-p1a8yw-shard-0',
maxElectionId: null,
maxSetVersion: null,
commonWireVersion: 0,
logicalSessionTimeoutMinutes: null
},
code: undefined,
[Symbol(errorLabels)]: Set(0) {},
[cause]: MongoNetworkError: EC230000:error:0A000438:SSL routines:ssl3_read_bytes:tlsv1 alert internal error:c:\ws\deps\openssl\openssl\ssl\record\rec_layer_s3.c:1586:SSL alert number 80

at connectionFailureError (E:\Pour_Ades\Tutorial2\node_modules\mongodb\lib\cmap\connect.js:379:20)
at TLSSocket.<anonymous> (E:\Pour_Ades\Tutorial2\node_modules\mongodb\lib\cmap\connect.js:285:22)
at Object.onceWrapper (node:events:629:26)
at TLSSocket.emit (node:events:514:28)
at emitErrorNT (node:internal/streams/destroy:151:8)
at emitErrorCloseNT (node:internal/streams/destroy:116:3)
at process.processTicksAndRejections (node:internal/process/task_queues:82:21) {
[Symbol(errorLabels)]: Set(1) { 'ResetPool' },
[cause]: [Error: EC230000:error:0A000438:SSL routines:ssl3_read_bytes:tlsv1 alert internal error:c:\ws\deps\openssl\openssl\ssl\record\rec_layer_s3.c:1586:SSL alert number 80
] {
library: 'SSL routines',
reason: 'tlsv1 alert internal error',
code: 'ERR_SSL_TLSV1_ALERT_INTERNAL_ERROR'
}
}
}

Ответить
@threeone6012
@threeone6012 - 02.12.2023 04:37

MongoDB looks just as easy as Mongoose. I should have learned MongoDB instead of Mongoose.

Ответить
@PRT603
@PRT603 - 10.06.2024 19:10

I'm running this exact code and it's throwing errors? Is it a filepathing error?

Ответить