Skip to content

Add hello command reference page#51

Open
xgerman wants to merge 1 commit into
documentdb:mainfrom
xgerman:geeichbe/docs-hello-command
Open

Add hello command reference page#51
xgerman wants to merge 1 commit into
documentdb:mainfrom
xgerman:geeichbe/docs-hello-command

Conversation

@xgerman

@xgerman xgerman commented Jul 2, 2026

Copy link
Copy Markdown
Contributor

Summary

Adds an API reference page for the hello command, documenting the DocumentDB-specific internal.documentdb_versions field — the recommended way to determine the DocumentDB engine version from a MongoDB client.

This closes a documentation gap surfaced by documentdb/documentdb#547, where users had no documented way to discover the DocumentDB version via mongosh (buildInfo only reports the emulated MongoDB wire-protocol version, e.g. 7.0.0).

Changes

  • New command category api-reference/commands/diagnostic/ with a category description.
  • hello.md page covering syntax (db.runCommand({ hello: 1 }) and the db.hello() helper), a return-fields table, and two examples — one showing the full response, one showing how to read internal.documentdb_versions.

Verification

Output samples were captured live against ghcr.io/documentdb/documentdb/documentdb-local:latest (engine version 0.113-0):

db.runCommand({ hello: 1 }).internal.documentdb_versions
[ "0.113-0", "0.113.0" ]

Related: documentdb/documentdb#547

@xgerman xgerman force-pushed the geeichbe/docs-hello-command branch from d122050 to 9d2dcfc Compare July 2, 2026 16:14
Document the hello diagnostic command and its DocumentDB-specific
internal.documentdb_versions field, which is the recommended way to
determine the DocumentDB engine version from a MongoDB client. Adds a
new 'diagnostic' command category. Addresses documentdb/documentdb#547.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Signed-off-by: German <geeichbe@microsoft.com>
@xgerman xgerman force-pushed the geeichbe/docs-hello-command branch from 9d2dcfc to 48c9e58 Compare July 2, 2026 16:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant