Blog
{Blog}  See what’s new with MongoDB 6.0 — and why you’ll want to upgrade today >>

Developer Data Platform

The Query API. A natural way to work with data.

Work with data as code to build any class of application faster – from high-throughput transactions and search to sophisticated real-time analytics.
Try Free
Read the docs
Atlas architecture diagram highlighting "Transactional" and "Analytical" within the Unified Interface category.

Our unified Query API makes it easy to work with any modern data such as arrays, geospatial, time series and more. Query, transform, and analyze data in place as your schema evolves.

Illustration of web pages and a shopping cart representing various data structures.

Flexibly accommodate any data type

The MongoDB Query API is purpose-built to handle data of any structure. Quickly query, transform, and analyze data as your schema evolves.
Illustration of web pages with check marks to represent handling key tasks.

Efficiently handle key tasks —
in one place

Execute key data operations, including indexing, querying, and updating, directly from the MongoDB Query API. No need to switch between interfaces or query syntax.
Illustration of bracket icons moving through a pipe and transforming into check marks to represent a simple developement process.

Simplify the development process

Query and aggregate data using your preferred coding language. The MongoDB Query API includes drivers to programmatically generate queries and build aggregation pipelines— removing the need to learn a new query language from scratch.

Feature overview
mdb_query
Query and update
Use powerful operators like $updateMany and $set to query and update documents in a collection.
general_features_global_clusters
Diverse index types
Optimize your queries with many index types — no matter how deeply nested the fields.
mdb_aggregation_pipelines
Transform + analyze data in place
Create real-time analytics against live data in the same cluster — no ETL or duplication needed.
general_action_search
Full-text search built for the document model
Deploy advanced, full-text search — without the need to manage additional infrastructure.
general_features_tools
Change streams
Build real-time, event-driven apps that react to database changes by triggering server-side logic.
general_features_api
Join and union
Use $lookup and $unionWith to join and blend multiple collections for deep analysis and exploration.
general_features_data_analytics
Geospatial and graph data
Easily query geospatial data and use operators like $graphLookup to traverse connected data sets.
general_features_list
On-demand materialized views
Pre-compute and cache common queries, dynamically updating result sets as new data is processed.

Seamlessly work
with data

Tap into the MongoDB Query API to work with your data in a native, familiar way. Run queries, build complex aggregation pipelines, and power applications — using the language you prefer.
View Documentation
Aggregate and analyze data
Build modular, multi-stage aggregation pipelines to run powerful analytics on your data. Surface key insights and inform the decision-making process.
Time series and geospatial data
Build and run time series applications — at any scale and for any industry. Analyze historical patterns, discover important trends, and forecast future user behavior.
Connect and integrate easily
Easily build and integrate data-centric applications with idiomatic language drivers or secure access over HTTPS.
Aggregate and analyze data
Build modular, multi-stage aggregation pipelines to run powerful analytics on your data. Surface key insights and inform the decision-making process.
CRUD
Aggregation Pipeline
Time series and geospatial data
Build and run time series applications — at any scale and for any industry. Analyze historical patterns, discover important trends, and forecast future user behavior.
CRUD
Aggregation Pipeline
Connect and integrate easily
Easily build and integrate data-centric applications with idiomatic language drivers or secure access over HTTPS.
CRUD
Aggregation Pipeline
CRUD
Aggregation Pipeline

Query. Transform. Analyze.

See what the Query API has to offer — and how it has empowered other organizations to transform their applications and workflows.
An illustration of graph data on a projector screen with a messaging icon to represent building apps from data
Tinker with an interactive demo app
Try this sample e-commerce app, powered by the Query API — and see how easy it is to build powerful apps with your data.
Check Out the Demo
An illustration of white shapes going into a green pipe to represent aggregation pipelines.
Brush up on aggregation pipelines
Dive into the powerful aggregation framework — and learn how to transform and analyze data in place to extract key insights.
Learn more

Get the most out of Atlas

Power more data-driven experiences and insights with the rest of our application data platform.
atlas_search
Search
Build fast, relevance-based full-text search in minutes. Eliminate the need to run a separate search engine alongside your database.
Learn more

Start using the Query API today

Get started in seconds. Use preloaded sample data sets to familiarize yourself with the Query API — and the MongoDB application data platform.
Try Free
Learn more
GET STARTED FOR FREE WITH:
  • CRUD
  • Aggregation pipeline
  • Change streams
  • Geospatial
  • Full-text search
  • Language drivers