Commands: Documents: How to get document metadata only?
Head is used to retrieve document metadata from a database.
Syntax
JsonDocumentMetadata Head(string key);
Parameters | ||
---|---|---|
key | string | key of a document to get metadata for |
Return Value | |
---|---|
JsonDocumentMetadata | Metadata information for document with given key. |
Example
JsonDocumentMetadata metadata = store.DatabaseCommands.Head("employees/1"); // null if does not exist