One to one relation in mongo database with id

  Рет қаралды 42,472

Hitesh Choudhary

Hitesh Choudhary

Күн бұрын

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/hiteshdo...
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
@RomanReigns-tg5qm
@RomanReigns-tg5qm 5 жыл бұрын
Nice video but Still couldn't figure out which approach to use .
@ritikkaushik2469
@ritikkaushik2469 5 жыл бұрын
I am gonna like your all videos because Why not??
@BhawaniSingh-jc7cw
@BhawaniSingh-jc7cw 5 жыл бұрын
@Hitesh...We can use Mark to select ObjectId in CMD. After selection and press enter, it will copy ObjectId.
@narutodihargo
@narutodihargo Жыл бұрын
01:55= Creating database , 02:15= inserting document, 05:00= Delete user db,
@jaggyjut
@jaggyjut 3 жыл бұрын
Thanks. How do we update a field in both documents using a single query?
@finnbarm
@finnbarm 3 жыл бұрын
In Windows, you can right click on the selected text to copy it.
@vishma9166
@vishma9166 3 жыл бұрын
to copy: use ctrl+shift+C to paste: ctrl+shift+v for terminal use
@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.
@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 ?
@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??
@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 :)
@divyangbhargava4905
@divyangbhargava4905 3 жыл бұрын
6.44 ....In windows after selecting the text, you can press Enter to copy from the command prompt.
@foodfairyshi
@foodfairyshi Жыл бұрын
Thank you Hitesh for your video. Easy to understand and so helpful.
@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"
@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)
@saptathirtachoudhury4158
@saptathirtachoudhury4158 Жыл бұрын
To copy anything in the shell, type ctrl + insert. It won't kill the terminal.
@KaranSingh-fg2nt
@KaranSingh-fg2nt 4 жыл бұрын
ctrl + c then put your cursore at that place where you want to paste then press mouse right key
@amyrtil
@amyrtil 5 жыл бұрын
No other way?lol... just used linux for your dev environment
@arshamazami159
@arshamazami159 3 жыл бұрын
hitesh thanks for your amazing videos you are the best bro😊
@loldelgado9613
@loldelgado9613 3 жыл бұрын
Anyway, thank you for this video. I had a lot of takeaway!
@techworld7182
@techworld7182 5 жыл бұрын
I learn lots of things from this channel... Thanks Hitesh
@aravind_k28
@aravind_k28 5 жыл бұрын
Please make a video series on react native -android app development
@alexnedin
@alexnedin 5 жыл бұрын
Thank you very much Hitesh.
@cherulast7998
@cherulast7998 4 жыл бұрын
I admire ur effort to describe everything
@shubhamgarg2359
@shubhamgarg2359 5 жыл бұрын
no intro
@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
One to many relation in mongo database
12:20
Hitesh Choudhary
Рет қаралды 62 М.
One to one relation part 2
7:08
Hitesh Choudhary
Рет қаралды 9 М.
iPhone or Chocolate??
00:16
Hungry FAM
Рет қаралды 41 МЛН
How To Get Married:   #short
00:22
Jin and Hattie
Рет қаралды 22 МЛН
Как мы играем в игры 😂
00:20
МЯТНАЯ ФАНТА
Рет қаралды 3,2 МЛН
Поветкин заставил себя уважать!
01:00
МИНУС БАЛЛ
Рет қаралды 6 МЛН
Save bandwidth while querying in mongoDB
11:28
Hitesh Choudhary
Рет қаралды 17 М.
MongoDB Crash Course 2023
1:04:52
NeetCodeIO
Рет қаралды 36 М.
FizzBuzz: One Simple Interview Question
7:18
Tom Scott
Рет қаралды 3,5 МЛН
Understanding objects structure in mongoDB
13:25
Hitesh Choudhary
Рет қаралды 17 М.
What is DATABASE SHARDING?
8:56
Gaurav Sen
Рет қаралды 929 М.
Being Competent With Coding Is More Fun
11:13
TheVimeagen
Рет қаралды 82 М.
Many to Many relation in mongoDB
10:18
Hitesh Choudhary
Рет қаралды 38 М.
Wordpress Open Source drama
15:46
Hitesh Choudhary
Рет қаралды 24 М.
MongoDB Schema Design Best Practices
9:58
MongoDB
Рет қаралды 157 М.
MongoDB Schema Design Best Practices
50:39
Joe Karlsson
Рет қаралды 171 М.
iPhone or Chocolate??
00:16
Hungry FAM
Рет қаралды 41 МЛН