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

PPTX
Part One: Building Web Apps with the MERN Stack
PDF
Word press beyond websites toronto
PDF
Modern Static Site with GatsbyJS
PPTX
Gatsby intro
PPTX
Presentation on Gatsby to SF Static Web Tech Meetup
PPTX
Java driver for mongo db
PDF
PDF
Part One: Building Web Apps with the MERN Stack
Word press beyond websites toronto
Modern Static Site with GatsbyJS
Gatsby intro
Presentation on Gatsby to SF Static Web Tech Meetup
Java driver for mongo db

What's hot (20)

PDF
PDF
Mongo db first steps with csharp
PPTX
Isomorphic web apps with react
PPTX
AngularJS + NancyFx + MongoDB = The best trio for ultimate SPA by Bojan Velja...
PDF
Optimising the RSPB website (2011)
PDF
kranonit S05E01 Sergey Burma: Welcome to cloud!
PPTX
Mongo db on azure for developers
KEY
Mongo Seattle - The Business of MongoDB
PDF
Cloud conference - mongodb
PDF
Raiders of the Fast Start: Frontend Performance Archaeology PerfmattersConf 2018
PDF
Frontend performance metrics
PPTX
MongoDB
PPTX
Measuring Front-End Performance - What, When and How?
PDF
TechEvent 2019: Increase Performances and User Engagement with progressive We...
ODP
Introduction to Web Scraping using Python and Beautiful Soup
PPTX
Canopy view of single-page applications (SPAs)
PDF
Introduction to GraphQL
PPT
Programming pillars
KEY
MongoDB Hadoop DC
PDF
JSON API Specificiation
Mongo db first steps with csharp
Isomorphic web apps with react
AngularJS + NancyFx + MongoDB = The best trio for ultimate SPA by Bojan Velja...
Optimising the RSPB website (2011)
kranonit S05E01 Sergey Burma: Welcome to cloud!
Mongo db on azure for developers
Mongo Seattle - The Business of MongoDB
Cloud conference - mongodb
Raiders of the Fast Start: Frontend Performance Archaeology PerfmattersConf 2018
Frontend performance metrics
MongoDB
Measuring Front-End Performance - What, When and How?
TechEvent 2019: Increase Performances and User Engagement with progressive We...
Introduction to Web Scraping using Python and Beautiful Soup
Canopy view of single-page applications (SPAs)
Introduction to GraphQL
Programming pillars
MongoDB Hadoop DC
JSON API Specificiation
Ad

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

PDF
Accra MongoDB User Group
PPT
MongoDB Tick Data Presentation
PPTX
Mean stack
PDF
MongoDB Days Silicon Valley: Winning the Dreamforce Hackathon with MongoDB
PPTX
MongoDB Schema Design: Practical Applications and Implications
PPTX
What is Mean Stack Development ?
PPTX
SQL to NoSQL: Top 6 Questions
PPTX
Novedades de MongoDB 3.6
PDF
MongoDB World 2016: Get MEAN and Lean with MongoDB and Kubernetes
PPTX
MEAN Stack - Introduction & Advantages - Why should you switch to MEAN stack ...
PDF
Backend Development Bootcamp - Node [Online & Offline] In Bangla
PDF
Pre-Aggregated Analytics And Social Feeds Using MongoDB
PPTX
FULL stack -> MEAN stack
PPTX
Webinar: When to Use MongoDB
PDF
MongoDB SoCal 2020: Migrate Anything* to MongoDB Atlas
PPTX
Validations in javascript in ReactJs concepts
PDF
Full stack Web Development Summer Training
PDF
Mongodb
PDF
MongoDB at Gilt Groupe
PPT
Tikal Fuse Day Access Layer Implementation (C#) Based On Mongo Db
Accra MongoDB User Group
MongoDB Tick Data Presentation
Mean stack
MongoDB Days Silicon Valley: Winning the Dreamforce Hackathon with MongoDB
MongoDB Schema Design: Practical Applications and Implications
What is Mean Stack Development ?
SQL to NoSQL: Top 6 Questions
Novedades de MongoDB 3.6
MongoDB World 2016: Get MEAN and Lean with MongoDB and Kubernetes
MEAN Stack - Introduction & Advantages - Why should you switch to MEAN stack ...
Backend Development Bootcamp - Node [Online & Offline] In Bangla
Pre-Aggregated Analytics And Social Feeds Using MongoDB
FULL stack -> MEAN stack
Webinar: When to Use MongoDB
MongoDB SoCal 2020: Migrate Anything* to MongoDB Atlas
Validations in javascript in ReactJs concepts
Full stack Web Development Summer Training
Mongodb
MongoDB at Gilt Groupe
Tikal Fuse Day Access Layer Implementation (C#) Based On Mongo Db
Ad

More from Nic Raboy (11)

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

Recently uploaded (20)

PDF
Optimiser vos workloads AI/ML sur Amazon EC2 et AWS Graviton
PDF
Approach and Philosophy of On baking technology
PPTX
VMware vSphere Foundation How to Sell Presentation-Ver1.4-2-14-2024.pptx
PDF
Mobile App Security Testing_ A Comprehensive Guide.pdf
PDF
Empathic Computing: Creating Shared Understanding
PDF
NewMind AI Weekly Chronicles - August'25 Week I
PDF
TokAI - TikTok AI Agent : The First AI Application That Analyzes 10,000+ Vira...
PDF
Machine learning based COVID-19 study performance prediction
PDF
Unlocking AI with Model Context Protocol (MCP)
PPTX
sap open course for s4hana steps from ECC to s4
PPTX
Big Data Technologies - Introduction.pptx
PDF
Profit Center Accounting in SAP S/4HANA, S4F28 Col11
PDF
Agricultural_Statistics_at_a_Glance_2022_0.pdf
PDF
KodekX | Application Modernization Development
PPTX
Cloud computing and distributed systems.
PPTX
20250228 LYD VKU AI Blended-Learning.pptx
PPTX
Spectroscopy.pptx food analysis technology
PDF
Advanced methodologies resolving dimensionality complications for autism neur...
PDF
Reach Out and Touch Someone: Haptics and Empathic Computing
PPT
Teaching material agriculture food technology
Optimiser vos workloads AI/ML sur Amazon EC2 et AWS Graviton
Approach and Philosophy of On baking technology
VMware vSphere Foundation How to Sell Presentation-Ver1.4-2-14-2024.pptx
Mobile App Security Testing_ A Comprehensive Guide.pdf
Empathic Computing: Creating Shared Understanding
NewMind AI Weekly Chronicles - August'25 Week I
TokAI - TikTok AI Agent : The First AI Application That Analyzes 10,000+ Vira...
Machine learning based COVID-19 study performance prediction
Unlocking AI with Model Context Protocol (MCP)
sap open course for s4hana steps from ECC to s4
Big Data Technologies - Introduction.pptx
Profit Center Accounting in SAP S/4HANA, S4F28 Col11
Agricultural_Statistics_at_a_Glance_2022_0.pdf
KodekX | Application Modernization Development
Cloud computing and distributed systems.
20250228 LYD VKU AI Blended-Learning.pptx
Spectroscopy.pptx food analysis technology
Advanced methodologies resolving dimensionality complications for autism neur...
Reach Out and Touch Someone: Haptics and Empathic Computing
Teaching material agriculture food technology

Getting Started with MongoDB using Node.js