One to one relation in mongo database with id

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

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
@BhawaniSingh-jc7cw
@BhawaniSingh-jc7cw 5 жыл бұрын
@Hitesh...We can use Mark to select ObjectId in CMD. After selection and press enter, it will copy ObjectId.
@cherulast7998
@cherulast7998 4 жыл бұрын
I admire ur effort to describe everything
@foodfairyshi
@foodfairyshi Жыл бұрын
Thank you Hitesh for your video. Easy to understand and so helpful.
@alexnedin
@alexnedin 5 жыл бұрын
Thank you very much Hitesh.
@ritikkaushik2469
@ritikkaushik2469 5 жыл бұрын
I am gonna like your all videos because Why not??
@arshamazami159
@arshamazami159 3 жыл бұрын
hitesh thanks for your amazing videos you are the best bro😊
@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.
@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"
@vishma9166
@vishma9166 3 жыл бұрын
to copy: use ctrl+shift+C to paste: ctrl+shift+v for terminal use
@jaggyjut
@jaggyjut 2 жыл бұрын
Thanks. How do we update a field in both documents using a single query?
@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
@narutodihargo
@narutodihargo 10 ай бұрын
01:55= Creating database , 02:15= inserting document, 05:00= Delete user db,
@loldelgado9613
@loldelgado9613 3 жыл бұрын
Anyway, thank you for this video. I had a lot of takeaway!
@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.
@aravind_k28
@aravind_k28 5 жыл бұрын
Please make a video series on react native -android app development
@divyangbhargava4905
@divyangbhargava4905 3 жыл бұрын
6.44 ....In windows after selecting the text, you can press Enter to copy from the command prompt.
@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 ?
@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 :)
@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??
@RomanReigns-tg5qm
@RomanReigns-tg5qm 4 жыл бұрын
Nice video but Still couldn't figure out which approach to use .
@KaranSingh-fg2nt
@KaranSingh-fg2nt 3 жыл бұрын
ctrl + c then put your cursore at that place where you want to paste then press mouse right key
@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)
@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 М.
LOVE LETTER - POPPY PLAYTIME CHAPTER 3 | GH'S ANIMATION
00:15
Nutella bro sis family Challenge 😋
00:31
Mr. Clabik
Рет қаралды 13 МЛН
1 or 2?🐄
00:12
Kan Andrey
Рет қаралды 57 МЛН
Save bandwidth while querying in mongoDB
11:28
Hitesh Choudhary
Рет қаралды 17 М.
Database issues with Update in mongodb
10:19
Hitesh Choudhary
Рет қаралды 19 М.
Many to Many relation in mongoDB
10:18
Hitesh Choudhary
Рет қаралды 37 М.
Programming Is NOT Enough | Add these 7 skills…
13:19
Travis Media
Рет қаралды 414 М.
Learn Mongodb aggregation pipelines
36:45
Chai aur Code
Рет қаралды 49 М.
What is Apache Kafka®?
11:42
Confluent
Рет қаралды 343 М.
What is mocha and need of mocha in mongodb
10:40
Hitesh Choudhary
Рет қаралды 34 М.
SQL vs NoSQL or MySQL vs MongoDB
21:30
Academind
Рет қаралды 1,8 МЛН
iPhone socket cleaning #Fixit
0:30
Tamar DB (mt)
Рет қаралды 11 МЛН
КРУТОЙ ТЕЛЕФОН
0:16
KINO KAIF
Рет қаралды 5 МЛН
$1 vs $100,000 Slow Motion Camera!
0:44
Hafu Go
Рет қаралды 22 МЛН
Зачем ЭТО электрику? #секрет #прибор #энерголикбез
0:56
Александр Мальков
Рет қаралды 367 М.
Cheapest gaming phone? 🤭 #miniphone #smartphone #iphone #fy
0:19
Pockify™
Рет қаралды 2,4 МЛН