MongoDB

The Query API.
Simple, expressive and unified.

A flexible, intuitive way to work with data. Deliver applications with minimal code and maximum productivity, in the language and tool of your choice.

Atlas architecture diagram highlighting "Transactional" and "Analytical" within the Unified Interface category.

The MongoDB Query API gives developers an intuitive way to handle complex data workloads for any data type, including arrays, geospatial, and time series data, so they can deliver more with less code.

  • Work in your preferred language
  • A single interface for operational, analytical, and search workloads

Work easily with any data type

Get complete control over your data with the MongoDB Query API. It’s designed to handle any data structure with ease, including key-value, graph, geospatial, time series, and objects. Optimized for embedded arrays and objects, these expressive querying capabilities unlock the flexibility of the document model.

Illustration of web pages and a shopping cart representing various data structures.
Illustration of web pages with check marks to represent handling key tasks.

Boost productivity with a single interface

Unlock the full potential of data operations. Perform key operations, including indexing, querying, and updating; all through a single, powerful API. Modernize your applications by using transactional, search, and analytical queries, without the need to switch between interfaces or struggle with complex query syntax.

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.

Illustration of bracket icons moving through a pipe and transforming into check marks to represent a simple developement process.

Feature overview

mdb_query

Expressive querying

Use a wide range of powerful operators, like $elemMatch and $geoWithin to query and update one or more documents based on a combination of criteria, including within nested arrays and objects.

general_features_global_clusters

Diverse index types

Optimize your queries with many index types — no matter how deeply nested the fields.

general_features_data_analytics

Geospatial and graph data

Query geospatial data easily and use operators, like $graphLookup, to traverse connected datasets.

atlas_data_federation

Query across collections and databases

Use $lookup and $unionWith to join and blend multiple collections, or Atlas Data Federation to query across databases, for deep analysis and exploration.

mdb_aggregation_pipelines

Transform + analyze data in place

Use the aggregation pipeline to build complex transformations in an easy, modular fashion.

atlas_full_text_search

Full-text search built for the document model

Deploy advanced, full-text search — without the need to manage additional infrastructure.

mdb_change_streams

Change streams

Build real-time, event-driven apps that react to database changes by triggering server-side logic.

mdb_materialized_views

On-demand, incremental materialized views

Pre-compute and cache common queries, dynamically updating result sets as new data is processed.

Simplify working with data

Work with data in an intuitive, familiar way. Deliver data-driven applications with minimal code run queries, build complex aggregation pipelines, and power applications, all in your preferred language.
View Documentation
Expressive querying made easy
Easily query on a range of data types including geospatial, graph, time series, as well as on nested arrays and objects, all while working in your preferred language.
Python
Javascript
Java
MongoShell
Composable in-database transformations
Build modular, multi-stage aggregation pipelines to run powerful analytics. Query across collections and databases, and transform your data to surface insights and make better decisions.
Python
Javascript
Java
MongoShell
Full-text search, time series, and more
Use a single interface for creating complex queries that power search workloads, time-series workloads, and event-driven apps. Save time on integrating multiple APIs or complex ETL.
Python
Javascript
Java
MongoShell

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.
An illustration of a person icon with a speech bubble watching a screen to represent watching a webinar.

Discover the latest with Query API

Find out what’s new and useful with the Query API in this talk.

Watch now
An illustration of a person icon with a speech bubble watching a screen to represent watching a webinar.

Dive into aggregation pipelines

Learn how to transform and analyze data in place to extract key insights using the powerful aggregation framework.

Learn more

Get the most out of Atlas

Power more data-driven experiences and insights with the rest of our developer 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
atlas_charts

Charts

Bring your data to life instantly. Create, share, and embed visualizations for real-time insights and business intelligence.

Learn more
atlas_data_lake

Data Lake

Analyze rich data easily across Atlas or cloud object storage. Combine, transform, and enrich data from multiple sources without complex integrations.

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 developer data platform.
BUILD YOUR MONGODB DATABASE WITH:
  • CRUD
  • Aggregations
  • Change streams
  • Geospatial and graph
  • Full-text search
  • Language drivers