EVENTGet 50% off your ticket to MongoDB.local NYC on May 2. Use code Web50! Learn more >

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.
Build Now
Learn how
Atlas architecture diagram highlighting "Transactional" and "Analytical" within the Unified Interface category.

An intuitive interface that simplifies the handling of complex data workloads for any data type —including arrays, geospatial, and time series data/All of which lets developers to deliver more with less code.

  • Work in your preferred language
  • A single interface for operational, analytical, and search workloads
Illustration of web pages and a shopping cart representing various data structures.

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.Query an array
Query nested documents
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. And modernize your applications by using transactional, search, and analytical queries, without the need to switch between interfaces or struggle with complex query syntax.Learn about full-text search
Explore analyzing data
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.Get language drivers
Learn MongoDB

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 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 your data in an intuitive, familiar way. Deliver data-driven applications with minimal code run queries, build complex aggregation pipelines, and power applications. All with 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. The JSON-like syntax allows for treating data as objects, while language drivers enable working in your preferred language. The Query API simplifies working with data in your application code.
Composable in-database transformations
Build modular, multi-stage aggregation pipelines to run powerful analytics on your data. Query across collections and databases, and transform your data to the exact schema you need. Surface key insights and inform the decision-making process.
Full-text search, time series, and more
Use a single interface for creating complex queries that power search workloads, time-series workloads, and/or event-driven apps. Save time on integrating multiple APIs or complex ETL.
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. The JSON-like syntax allows for treating data as objects, while language drivers enable working in your preferred language. The Query API simplifies working with data in your application code.
Python
Javascript
Java
MongoShell
Composable in-database transformations
Build modular, multi-stage aggregation pipelines to run powerful analytics on your data. Query across collections and databases, and transform your data to the exact schema you need. Surface key insights and inform the decision-making process.
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/or event-driven apps. Save time on integrating multiple APIs or complex ETL.
Python
Javascript
Java
MongoShell
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.
Explore the Demo
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.

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.

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.

atlas_charts

Charts

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

atlas_data_lake

Data Lake

Analyze rich data easily across Atlas and AWS S3. Combine, transform, and enrich data from multiple sources without complex integrations.

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