One to one relation in mongo database with id

  Рет қаралды 41,907

Hitesh Choudhary

Hitesh Choudhary

5 жыл бұрын

Welcome to a youtube channel dedicated to programming and coding related tutorials. We talk about tech, write code, discuss about cloud and devops. That’s what we do all day, all year. We roll out a lot of series and videos on our channel.
All the learning resources such as code files, documentations, articles and community discussions are available on our website:
chaicode.com/
You can find our discord link, github link etc on the above website.
Twitter/X link: x.com/hiteshdotcom
Discord link: hitesh.ai/discord
Learn React with 10 projects: • Let's learn react from...
Learn Docker: • A practical guide on D...
Learn Kubernetes: • Complete Kubernetes Co...
How does a browser works: • How does a browser wor...
How nodejs works: • How node JS works | En...
Learn Redux-toolkit: • Learn Redux Toolkit in...
Learn NextJS: • Nextjs Full stack course
Learn Typescript: • Why to learn Typescript
Learn Javascript: • Welcome to new JavaScr...
Learn React Native: • React Native Mastery: ...
Learn Zustand: • React state management...
Learn Golang: • How to get started wit...

Пікірлер: 28
@techworld7182
@techworld7182 5 жыл бұрын
I learn lots of things from this channel... Thanks Hitesh
@cherulast7998
@cherulast7998 4 жыл бұрын
I admire ur effort to describe everything
@arshamazami159
@arshamazami159 3 жыл бұрын
hitesh thanks for your amazing videos you are the best bro😊
@ritikkaushik2469
@ritikkaushik2469 5 жыл бұрын
I am gonna like your all videos because Why not??
@foodfairyshi
@foodfairyshi Жыл бұрын
Thank you Hitesh for your video. Easy to understand and so helpful.
@alexnedin
@alexnedin 5 жыл бұрын
Thank you very much Hitesh.
@BhawaniSingh-jc7cw
@BhawaniSingh-jc7cw 5 жыл бұрын
@Hitesh...We can use Mark to select ObjectId in CMD. After selection and press enter, it will copy ObjectId.
@loldelgado9613
@loldelgado9613 3 жыл бұрын
Anyway, thank you for this video. I had a lot of takeaway!
@code_react
@code_react 4 жыл бұрын
Well you can copy in windows cmd as well. just select the section you want to copy and then press enter.
@ahmad-masroor
@ahmad-masroor 5 жыл бұрын
Thanks for the amazing video. Hats off to you bro
@indraworks6050
@indraworks6050 4 жыл бұрын
sorry i dont get the idea for the link one to one , is it shoeuld we make it the _id of video colections for the ceator if its link to the users? so if we have 1000 users then we have 1000 video how you to link it , you will write the value of the _id?? :D
@sairam-du7ip
@sairam-du7ip 4 жыл бұрын
copy and past is possible in windows command prompt 1> open the command prompt 2> click "Alt"+"space bar". Options will be open 3> click "properties". Another options box will be open 4> click the option "use ctrl+shift+c/v as copy/past" 5> click"OK" Now you can copy by clicking "ctrl+shift+c" and past by clicking "ctrl+shift+v"
@jaggyjut
@jaggyjut 2 жыл бұрын
Thanks. How do we update a field in both documents using a single query?
@vishma9166
@vishma9166 3 жыл бұрын
to copy: use ctrl+shift+C to paste: ctrl+shift+v for terminal use
@aravind_k28
@aravind_k28 5 жыл бұрын
Please make a video series on react native -android app development
@saptathirtachoudhury4158
@saptathirtachoudhury4158 Жыл бұрын
To copy anything in the shell, type ctrl + insert. It won't kill the terminal.
@finnbarm
@finnbarm 3 жыл бұрын
In Windows, you can right click on the selected text to copy it.
@divyangbhargava4905
@divyangbhargava4905 3 жыл бұрын
6.44 ....In windows after selecting the text, you can press Enter to copy from the command prompt.
@RomanReigns-tg5qm
@RomanReigns-tg5qm 4 жыл бұрын
Nice video but Still couldn't figure out which approach to use .
@indraworks6050
@indraworks6050 4 жыл бұрын
sorry i dont get the idea for the link one to one , is it shoeuld we make it the _id of video colections for the ceator if its link to the users? so if we have 1000 users then we have 1000 video how you to link it , you will write the value of the _id?? :D i cant still understand it , if in relation db we just do it no issue ,so how ?? would you please to eplain Sir??
@KaranSingh-fg2nt
@KaranSingh-fg2nt 3 жыл бұрын
ctrl + c then put your cursore at that place where you want to paste then press mouse right key
@temzeks
@temzeks 3 жыл бұрын
i am having issue related to this, i want to reference blogs in my users and users in my blogposts, i have made it to work iwth blogposts but blogs array is empty inside the users. ive done everything corrrectly, where can i share my code for anyone to help me ?
@amirabbas434
@amirabbas434 5 жыл бұрын
Hi.. What kind of programmer are you ... An android developer.. Web designer... (Soory maybe you have already answered this in of your videos couse unfortunately i didn't watched all of your videos yet)
@nour-science
@nour-science 4 жыл бұрын
i'm working with Robo 3t 1.3 this was my code , db.Relation.insertOne( { _id:"mr1", type:"marriage", husband: ObjectId("4z-z"), wife: ObjectId("5n-a"), start : new Date("1994-09-23") } ) but a faced an error : "invalid Object Id " , while the _ids that i used were correct , someone help me please :)
@narutodihargo
@narutodihargo 9 ай бұрын
01:55= Creating database , 02:15= inserting document, 05:00= Delete user db,
@shubhamgarg2359
@shubhamgarg2359 5 жыл бұрын
no intro
@amyrtil
@amyrtil 4 жыл бұрын
No other way?lol... just used linux for your dev environment
One to many relation in mongo database
12:20
Hitesh Choudhary
Рет қаралды 62 М.
One to one relation part 2
7:08
Hitesh Choudhary
Рет қаралды 9 М.
The day of the sea 🌊 🤣❤️ #demariki
00:22
Demariki
Рет қаралды 93 МЛН
Super gymnastics 😍🫣
00:15
Lexa_Merin
Рет қаралды 108 МЛН
когда повзрослела // EVA mash
00:40
EVA mash
Рет қаралды 3,2 МЛН
Increíble final 😱
00:37
Juan De Dios Pantoja 2
Рет қаралды 111 МЛН
Grouping in mongodb
24:51
Hitesh Choudhary
Рет қаралды 21 М.
Database issues with Update in mongodb
10:19
Hitesh Choudhary
Рет қаралды 19 М.
Many to Many relation in mongoDB
10:18
Hitesh Choudhary
Рет қаралды 37 М.
Lookup in Mongodb aggregation
9:47
Hitesh Choudhary
Рет қаралды 14 М.
SQL vs NoSQL or MySQL vs MongoDB
21:30
Academind
Рет қаралды 1,8 МЛН
Database Sharding and Partitioning
23:53
Arpit Bhayani
Рет қаралды 66 М.
Getting more data in #mongodb
9:55
Hitesh Choudhary
Рет қаралды 15 М.
How does mongoDB works
11:23
Hitesh Choudhary
Рет қаралды 75 М.
Git MERGE vs REBASE: The Definitive Guide
9:39
The Modern Coder
Рет қаралды 87 М.
Create and Read operation in MongoDB
16:35
Hitesh Choudhary
Рет қаралды 49 М.
Собери ПК и Получи 10,000₽
1:00
build monsters
Рет қаралды 1,8 МЛН
Игровой Комп с Авито за 4500р
1:00
ЖЕЛЕЗНЫЙ КОРОЛЬ
Рет қаралды 1,6 МЛН
iPhone 16 с инновационным аккумулятором
0:45
ÉЖИ АКСЁНОВ
Рет қаралды 422 М.
Cadiz smart lock official account unlocks the aesthetics of returning home
0:30