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; 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) {