SlideShare a Scribd company logo
Getting Started with
MongoDB using Node.js
HackNC Workshop
Nic Raboy | Senior Developer Advocate | MongoDB | nraboy.com
Agenda
RESTful APIs with Express Framework
Complex Queries with the Aggregation Pipeline
CRUD Operations with MongoDB
Data Modeling with BSON Documents
The MongoDB Cloud
Webhook Functions with Realm
Configuring and Interacting with MongoDB
The MongoDB Cloud
MongoDB Atlas
Cloud Hosted MongoDB
No servers to manage and no
operations skills required.
Forever Free Tier
Deploy a free “M0” cluster in
minutes, no credit card needed.
Easy Scaling
Scale up or down as needed
with a click of the mouse.
MongoDB Realm
Serverless Functions
Eliminate backend development
with functions and triggers.
Mobile Sync
Offline-first mobile development
that syncs when able.
GraphQL
GraphQL APIs with no
development needed.
Getting Started with MongoDB using Node.js
Getting Started with MongoDB using Node.js
Getting Started with MongoDB using Node.js
Getting Started with MongoDB using Node.js
Getting Started with MongoDB using Node.js
Getting Started with MongoDB using Node.js
Getting Started with MongoDB using Node.js
Getting Started with MongoDB using Node.js
Getting Started with MongoDB using Node.js
Working with JSON Data
Data Modeling with BSON Documents
Data Modeling: Schools and Students
Data Modeling: Schools and Students
Data Modeling: Schools and Students
• Large Documents
• Potentially Poor Performance
• RDBMS?
Data Modeling: Schools and Students
Data Modeling: Schools and Students
• Unmanageable
• Large Documents
• Potentially Poor Performance
• Potentially Difficult to Query
Data Modeling: Schools and Students
Data Modeling: Schools and Students
• Duplicate Data [Non-Problem]
• Easy to Query
• Potentially Small Documents [Non-Problem]
• Easy to Maintain
https://www.youtube.com/watch?v=cKRYK5W1Tkg
Create, Read, Update, Delete
CRUD Operations with MongoDB
CRUD: InsertOne
CRUD: InsertMany
CRUD: FindOne
CRUD: FindOne
CRUD: Find [FindMany]
CRUD: UpdateOne
CRUD: UpdateMany
CRUD: DeleteOne
CRUD: DeleteMany
$match, $group, $search, $lookup, and more!
Complex Queries with the Data
Aggregation Pipeline
Aggregation Pipeline: $match, $group
Aggregation Pipeline: $unwind
Aggregation Pipeline: $match, $unwind, $match
POST, GET, PUT, DELETE and more!
RESTful APIs with Express Framework
Express Framework Boilerplate
Express Framework: Connect to MongoDB
Express Framework: API Endpoints
Express Framework: Data Validation
MongoDB Schema Validation
Serverless Functions and MongoDB
Webhook Functions
with Realm
Realm Function: Create
Realm Function: Read
Realm Function: Update
Points and Key Take-Aways
Conclusion
Conclusion
Take advantage of MongoDB Atlas!
There isn’t a one size fits all solution to a NoSQL data model.
MongoDB APIs are the same (sort of) between drivers and tools.
The MongoDB Node.js driver is not framework dependent.
Realm is a valid alternative to the Node.js driver.
Resources
Twitch: https://www.twitch.tv/mongodb
Podcast: https://www.mongodb.com/podcast
Developer Portal: https://developer.mongodb.com
Community Forums: https://community.mongodb.com
Me (Nic Raboy): https://www.nraboy.com
Thank You
Connect With Me Online!
Nic Raboy | Senior Developer Advocate | MongoDB | nraboy.com

More Related Content

What's hot (20)

PDF
MongoDB
Serdar Buyuktemiz
 
PDF
Mongo db first steps with csharp
Serdar Buyuktemiz
 
PPTX
Isomorphic web apps with react
larrymyers717
 
PPTX
AngularJS + NancyFx + MongoDB = The best trio for ultimate SPA by Bojan Velja...
Bojan Veljanovski
 
PDF
Optimising the RSPB website (2011)
Graham Bird
 
PDF
kranonit S05E01 Sergey Burma: Welcome to cloud!
Krivoy Rog IT Community
 
PPTX
Mongo db on azure for developers
Mark Greenway
 
KEY
Mongo Seattle - The Business of MongoDB
Justin Smestad
 
PDF
Cloud conference - mongodb
Mitch Pirtle
 
PDF
Raiders of the Fast Start: Frontend Performance Archaeology PerfmattersConf 2018
Katie Sylor-Miller
 
PDF
Frontend performance metrics
Артем Захарченко
 
PPTX
MongoDB
Rony Gregory
 
PPTX
Measuring Front-End Performance - What, When and How?
Gareth Hughes
 
PDF
TechEvent 2019: Increase Performances and User Engagement with progressive We...
Trivadis
 
ODP
Introduction to Web Scraping using Python and Beautiful Soup
Tushar Mittal
 
PPTX
Canopy view of single-page applications (SPAs)
Benjamin Howarth
 
PDF
Introduction to GraphQL
İlker Güller
 
PPT
Programming pillars
Ian Stuart
 
KEY
MongoDB Hadoop DC
Mike Dirolf
 
PDF
JSON API Specificiation
Wojciech Langiewicz
 
Mongo db first steps with csharp
Serdar Buyuktemiz
 
Isomorphic web apps with react
larrymyers717
 
AngularJS + NancyFx + MongoDB = The best trio for ultimate SPA by Bojan Velja...
Bojan Veljanovski
 
Optimising the RSPB website (2011)
Graham Bird
 
kranonit S05E01 Sergey Burma: Welcome to cloud!
Krivoy Rog IT Community
 
Mongo db on azure for developers
Mark Greenway
 
Mongo Seattle - The Business of MongoDB
Justin Smestad
 
Cloud conference - mongodb
Mitch Pirtle
 
Raiders of the Fast Start: Frontend Performance Archaeology PerfmattersConf 2018
Katie Sylor-Miller
 
Frontend performance metrics
Артем Захарченко
 
MongoDB
Rony Gregory
 
Measuring Front-End Performance - What, When and How?
Gareth Hughes
 
TechEvent 2019: Increase Performances and User Engagement with progressive We...
Trivadis
 
Introduction to Web Scraping using Python and Beautiful Soup
Tushar Mittal
 
Canopy view of single-page applications (SPAs)
Benjamin Howarth
 
Introduction to GraphQL
İlker Güller
 
Programming pillars
Ian Stuart
 
MongoDB Hadoop DC
Mike Dirolf
 
JSON API Specificiation
Wojciech Langiewicz
 

Similar to Getting Started with MongoDB using Node.js (20)

PDF
Node Js, AngularJs and Express Js Tutorial
PHP Support
 
PDF
Mongodb
Paulo Fagundes
 
PDF
MongoDB
wiTTyMinds1
 
PDF
The Little MongoDB Book - Karl Seguin
Paulo Fagundes
 
PDF
MongoDB and crud operations with nosql_ppt.pdf
HemrajAunund2
 
PPTX
How to learn MongoDB for beginner's
surajkumartpoint
 
PDF
Mongodb
ichangbai
 
PDF
Mongodb tutorial
Ashoka Vanjare
 
PPTX
Introduction-to-MongoDB with mongoose and Node
PrakashSingh320275
 
PPT
9. Document Oriented Databases
Fabio Fumarola
 
PDF
Getting Ahead with MongoDB
Neha Nivedita
 
PDF
Mongodb tutorial
sachin486983
 
PPTX
Dev Jumpstart: Build Your First App with MongoDB
MongoDB
 
PDF
Introduction to MongoDB Basics from SQL to NoSQL
Mayur Patil
 
PPTX
MongoDB_ppt.pptx
1AP18CS037ShirishKul
 
PPTX
Introduction To MongoDB
ElieHannouch
 
PPTX
MongoDbPpt based on python installation.
jnvcomputerlab2024
 
PDF
MongoDB.pdf
KuldeepKumar778733
 
PPTX
MongoDB introduction features -presentation - 2.pptx
sampathkumar546444
 
PDF
Using MongoDB and Python
Mike Bright
 
Node Js, AngularJs and Express Js Tutorial
PHP Support
 
MongoDB
wiTTyMinds1
 
The Little MongoDB Book - Karl Seguin
Paulo Fagundes
 
MongoDB and crud operations with nosql_ppt.pdf
HemrajAunund2
 
How to learn MongoDB for beginner's
surajkumartpoint
 
Mongodb
ichangbai
 
Mongodb tutorial
Ashoka Vanjare
 
Introduction-to-MongoDB with mongoose and Node
PrakashSingh320275
 
9. Document Oriented Databases
Fabio Fumarola
 
Getting Ahead with MongoDB
Neha Nivedita
 
Mongodb tutorial
sachin486983
 
Dev Jumpstart: Build Your First App with MongoDB
MongoDB
 
Introduction to MongoDB Basics from SQL to NoSQL
Mayur Patil
 
MongoDB_ppt.pptx
1AP18CS037ShirishKul
 
Introduction To MongoDB
ElieHannouch
 
MongoDbPpt based on python installation.
jnvcomputerlab2024
 
MongoDB.pdf
KuldeepKumar778733
 
MongoDB introduction features -presentation - 2.pptx
sampathkumar546444
 
Using MongoDB and Python
Mike Bright
 
Ad

More from Nic Raboy (11)

PPTX
Marketing and Workflow Automation
Nic Raboy
 
PPTX
Create a Chatbot with AWS Lex, Lambda, and HERE
Nic Raboy
 
PPTX
Developing Amazon Alexa Skills with the Go Programming Language
Nic Raboy
 
PPTX
Static Site Generation with Hugo and Markdown
Nic Raboy
 
PPTX
Powering an API with GraphQL, Golang, and NoSQL
Nic Raboy
 
PPTX
Building a Bitcoin Hardware Wallet with Golang and a Raspberry Pi Zero
Nic Raboy
 
PPTX
Developing Applications with Go and NoSQL
Nic Raboy
 
PPTX
Native to Hybrid and Back Again
Nic Raboy
 
PPTX
Developing for Offline First Mobile Experiences
Nic Raboy
 
PPTX
Quick and Easy Development with Node.js and Couchbase Server
Nic Raboy
 
PPTX
Cross Platform Storage & Sync with Couchbase and Ionic Framework
Nic Raboy
 
Marketing and Workflow Automation
Nic Raboy
 
Create a Chatbot with AWS Lex, Lambda, and HERE
Nic Raboy
 
Developing Amazon Alexa Skills with the Go Programming Language
Nic Raboy
 
Static Site Generation with Hugo and Markdown
Nic Raboy
 
Powering an API with GraphQL, Golang, and NoSQL
Nic Raboy
 
Building a Bitcoin Hardware Wallet with Golang and a Raspberry Pi Zero
Nic Raboy
 
Developing Applications with Go and NoSQL
Nic Raboy
 
Native to Hybrid and Back Again
Nic Raboy
 
Developing for Offline First Mobile Experiences
Nic Raboy
 
Quick and Easy Development with Node.js and Couchbase Server
Nic Raboy
 
Cross Platform Storage & Sync with Couchbase and Ionic Framework
Nic Raboy
 
Ad

Recently uploaded (20)

PPTX
Designing_the_Future_AI_Driven_Product_Experiences_Across_Devices.pptx
presentifyai
 
PDF
"Beyond English: Navigating the Challenges of Building a Ukrainian-language R...
Fwdays
 
PPTX
MuleSoft MCP Support (Model Context Protocol) and Use Case Demo
shyamraj55
 
PDF
The Rise of AI and IoT in Mobile App Tech.pdf
IMG Global Infotech
 
PDF
"AI Transformation: Directions and Challenges", Pavlo Shaternik
Fwdays
 
PDF
How do you fast track Agentic automation use cases discovery?
DianaGray10
 
PDF
Mastering Financial Management in Direct Selling
Epixel MLM Software
 
DOCX
Cryptography Quiz: test your knowledge of this important security concept.
Rajni Bhardwaj Grover
 
PDF
What’s my job again? Slides from Mark Simos talk at 2025 Tampa BSides
Mark Simos
 
PDF
Go Concurrency Real-World Patterns, Pitfalls, and Playground Battles.pdf
Emily Achieng
 
PDF
[Newgen] NewgenONE Marvin Brochure 1.pdf
darshakparmar
 
PDF
POV_ Why Enterprises Need to Find Value in ZERO.pdf
darshakparmar
 
PPTX
Webinar: Introduction to LF Energy EVerest
DanBrown980551
 
PPTX
AI Penetration Testing Essentials: A Cybersecurity Guide for 2025
defencerabbit Team
 
PPTX
Q2 FY26 Tableau User Group Leader Quarterly Call
lward7
 
DOCX
Python coding for beginners !! Start now!#
Rajni Bhardwaj Grover
 
PDF
New from BookNet Canada for 2025: BNC BiblioShare - Tech Forum 2025
BookNet Canada
 
PDF
Agentic AI lifecycle for Enterprise Hyper-Automation
Debmalya Biswas
 
PDF
Automating Feature Enrichment and Station Creation in Natural Gas Utility Net...
Safe Software
 
PDF
Newgen 2022-Forrester Newgen TEI_13 05 2022-The-Total-Economic-Impact-Newgen-...
darshakparmar
 
Designing_the_Future_AI_Driven_Product_Experiences_Across_Devices.pptx
presentifyai
 
"Beyond English: Navigating the Challenges of Building a Ukrainian-language R...
Fwdays
 
MuleSoft MCP Support (Model Context Protocol) and Use Case Demo
shyamraj55
 
The Rise of AI and IoT in Mobile App Tech.pdf
IMG Global Infotech
 
"AI Transformation: Directions and Challenges", Pavlo Shaternik
Fwdays
 
How do you fast track Agentic automation use cases discovery?
DianaGray10
 
Mastering Financial Management in Direct Selling
Epixel MLM Software
 
Cryptography Quiz: test your knowledge of this important security concept.
Rajni Bhardwaj Grover
 
What’s my job again? Slides from Mark Simos talk at 2025 Tampa BSides
Mark Simos
 
Go Concurrency Real-World Patterns, Pitfalls, and Playground Battles.pdf
Emily Achieng
 
[Newgen] NewgenONE Marvin Brochure 1.pdf
darshakparmar
 
POV_ Why Enterprises Need to Find Value in ZERO.pdf
darshakparmar
 
Webinar: Introduction to LF Energy EVerest
DanBrown980551
 
AI Penetration Testing Essentials: A Cybersecurity Guide for 2025
defencerabbit Team
 
Q2 FY26 Tableau User Group Leader Quarterly Call
lward7
 
Python coding for beginners !! Start now!#
Rajni Bhardwaj Grover
 
New from BookNet Canada for 2025: BNC BiblioShare - Tech Forum 2025
BookNet Canada
 
Agentic AI lifecycle for Enterprise Hyper-Automation
Debmalya Biswas
 
Automating Feature Enrichment and Station Creation in Natural Gas Utility Net...
Safe Software
 
Newgen 2022-Forrester Newgen TEI_13 05 2022-The-Total-Economic-Impact-Newgen-...
darshakparmar
 

Getting Started with MongoDB using Node.js