You are currently browsing legacy 2.0 version of documentation. Click here to switch to the newest 5.1 version.

We can help you with migration to the latest RavenDB

Contact Us Now
see on GitHub

Metadata only

Every RavenDB's response that includes documents together with metadata can be cut off to metadata only. If this is your intention add ?metadata-only=true parameter to the query string. In result only document metadata will be contained in the HTTP response to a request. Below there are a few simple use cases:

curl -X GET http://localhost:8080/docs/?metadata-only=true

curl -X GET "http://localhost:8080/queries?id=albums/661&id=albums/629&metadata-only=true"

curl -X GET "http://localhost:8080/indexes/AlbumsByGenre?query=Genre:genres/1&metadata-only=true"