From c2e6fae1f8014377cb28daa9181fc0d5ac869dce Mon Sep 17 00:00:00 2001 From: Durran Jordan Date: Tue, 9 Sep 2025 13:52:43 -0400 Subject: [PATCH 1/2] refactor: make rawData internal --- src/operations/command.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/operations/command.ts b/src/operations/command.ts index d4cde5b6478..59f8a4776db 100644 --- a/src/operations/command.ts +++ b/src/operations/command.ts @@ -67,8 +67,8 @@ export interface CommandOperationOptions /** * Used when the command needs to grant access to the underlying namespaces for time series collections. - * Only available on server versions 8.2 and above. - * @public + * Only available on server versions 8.2 and above and is not meant for public use. + * @internal * @sinceServerVersion 8.2 **/ rawData?: boolean; From 4a9fda4aef09f9ea29191fb1232e5f4149d05840 Mon Sep 17 00:00:00 2001 From: Durran Jordan Date: Wed, 10 Sep 2025 08:46:51 -0400 Subject: [PATCH 2/2] chore: comments --- src/operations/indexes.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/operations/indexes.ts b/src/operations/indexes.ts index aa4b991025a..f6354dcf1ad 100644 --- a/src/operations/indexes.ts +++ b/src/operations/indexes.ts @@ -356,6 +356,8 @@ export class DropIndexOperation extends CommandOperation { export type ListIndexesOptions = AbstractCursorOptions & { /** @internal */ omitMaxTimeMS?: boolean; + /** @internal */ + rawData?: boolean; }; /** @internal */ @@ -368,7 +370,7 @@ export class ListIndexesOperation extends CommandOperation { * This allows typescript to delete the key but will * not allow a writeConcern to be assigned as a property on options. */ - override options: ListIndexesOptions & { writeConcern?: never; rawData?: boolean }; + override options: ListIndexesOptions & { writeConcern?: never }; collectionNamespace: MongoDBNamespace; constructor(collection: Collection, options?: ListIndexesOptions) {