Important

Helios features are now enabled during weekly update windows and are no longer directly tied to SingleStore engine releases. Refer to the release notes to view the latest features available in your Helios cluster.

getDefaultCollectionOptions

On this page

Returns the defaults that are used when a collection is created implicitly by a write command for the current/specified database. These defaults can be set using the setDefaultCollectionOptions command.

Syntax

db.runCommand({ getDefaultCollectionOptions: 1 });

Example

The following command returns the defaults set for the current database:

db.runCommand({ getDefaultCollectionOptions: 1 });
{ value: { shardKey: { _id: 1 } }, ok: 1 }

Last modified:

Was this article helpful?