---
title: "What is a DocumentQuery?"
description: "Use DocumentQuery in RavenDB for a lower-level, chainable query API that provides more control than the standard LINQ-based Query."
url: "https://docs.ravendb.net/7.2/querying/document-query/what-is-document-query"
version: "7.2"
language: "nodejs"
---

# What is a DocumentQuery?

> Client language: Node.js. Also available for [C#](https://docs.ravendb.net/7.2/querying/document-query/what-is-document-query.md), [Java](https://docs.ravendb.net/7.2/querying/document-query/what-is-document-query.java.md), [Python](https://docs.ravendb.net/7.2/querying/document-query/what-is-document-query.python.md), [PHP](https://docs.ravendb.net/7.2/querying/document-query/what-is-document-query.php.md).
>
> RavenDB publishes an official agent skill for coding assistants at https://docs.ravendb.net/skills/ravendb/SKILL.md (also installable with `npx skills add ravendb/skills`). The skill describes itself as: "Read this before writing any RavenDB query, client call or /databases/ request. Covers server setup, document modelling, the Node.js, .NET and Python clients, RQL, indexes, vector search and AI agents. Code written from recall tends to run and return the wrong rows, because RQL resembles SQL and the clients take field names as plain strings."

> **Note**
>
> - In contrast to the **.NET client** - where the `Query` method supports LINQ while `DocumentQuery` provides lower-level flexibility and control -
>   the **Node.js client** provides a **unified API** for querying documents through `session.query()`.
>
> - In the Node.js client, the `query` method is essentially a shorthand for invoking the `documentQuery` method.  
>   See examples of those equivalent calls in [query vs documentQuery](https://docs.ravendb.net/7.2/querying/document-query/query-vs-document-query.nodejs.md).
>
> - All available methods for the session `query` method are listed in the [query API](https://docs.ravendb.net/7.2/querying/overview.nodejs.md#query-api) section.

## See also

- [Query overview](https://docs.ravendb.net/7.2/querying/overview.nodejs.md)
- [Filter with Lucene Syntax](https://docs.ravendb.net/7.2/querying/filtering-query-results/filter-with-lucene-syntax.nodejs.md)
- [Querying: Basics](https://docs.ravendb.net/7.2/indexes/querying/query-index.nodejs.md)
- [Query vs DocumentQuery](https://docs.ravendb.net/7.2/querying/document-query/query-vs-document-query.nodejs.md)
- [Projections](https://docs.ravendb.net/7.2/indexes/querying/projections.nodejs.md)
