paint-brush
How to Use .populate() With mongoDBby@GK3000
706 reads
706 reads

How to Use .populate() With mongoDB

by George3mOctober 9th, 2022
Read on Terminal Reader
Read this story w/o Javascript
tldt arrow

Too Long; Didn't Read

A common example of a common eCommerce website with two collections for the products and the categories. Each product belongs to a certain category like "shoes", "hats", and "pants" – and we want to refer to a corresponding collection from each product. We do not want to include the actual name of the category into a product's record since it will complicate renaming categories. Instead of the default MongoDB random sequence of letters and numbers, we want the corresponding category's name.

Company Mentioned

Mention Thumbnail
featured image - How to Use .populate() With mongoDB
George HackerNoon profile picture
George

George

@GK3000

Barcelona Code School

About @GK3000
LEARN MORE ABOUT @GK3000'S
EXPERTISE AND PLACE ON THE INTERNET.
L O A D I N G
. . . comments & more!

About Author

George HackerNoon profile picture
George@GK3000
Barcelona Code School

TOPICS

THIS ARTICLE WAS FEATURED IN...

Permanent on Arweave
Read on Terminal Reader
Read this story in a terminal
 Terminal
Read this story w/o Javascript
Read this story w/o Javascript
 Lite