Skip to content

Instantly share code, notes, and snippets.

@codeSTACKr
Last active July 29, 2023 02:58
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save codeSTACKr/1545c680b9abfb0ec4df9171cb5f56d2 to your computer and use it in GitHub Desktop.
Save codeSTACKr/1545c680b9abfb0ec4df9171cb5f56d2 to your computer and use it in GitHub Desktop.
Import Data Into MongoDB 3 Ways

Use the orders.json file to follow along in the YouTube video -

{
"user_id": 1,
"first_name": "Jesse",
"last_name": "Hall",
"orders": [
{
"order_id": 1,
"product": "watch",
"quantity": 1,
"price": 99.99
},
{
"order_id": 2,
"product": "hat",
"quantity": 1,
"price": 24.99
}
]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment