Skip to content

Commit c67c717

Browse files
address comments
1 parent fb4a8c7 commit c67c717

File tree

4 files changed

+10
-10
lines changed

4 files changed

+10
-10
lines changed

src/cursor/list_search_indexes_cursor.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,10 @@ import type { Collection } from '../collection';
22
import type { AggregateOptions } from '../operations/aggregate';
33
import { AggregationCursor } from './aggregation_cursor';
44

5-
/** @public */
5+
/** @internal */
66
export type ListSearchIndexesOptions = AggregateOptions;
77

8-
/** @public */
8+
/** @internal */
99
export class ListSearchIndexesCursor extends AggregationCursor<{ name: string }> {
1010
/** @internal */
1111
constructor(

src/db.ts

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -121,6 +121,9 @@ export class Db {
121121
/** @internal */
122122
s: DbPrivate;
123123

124+
/** @internal */
125+
readonly client: MongoClient;
126+
124127
public static SYSTEM_NAMESPACE_COLLECTION = CONSTANTS.SYSTEM_NAMESPACE_COLLECTION;
125128
public static SYSTEM_INDEX_COLLECTION = CONSTANTS.SYSTEM_INDEX_COLLECTION;
126129
public static SYSTEM_PROFILE_COLLECTION = CONSTANTS.SYSTEM_PROFILE_COLLECTION;
@@ -135,12 +138,7 @@ export class Db {
135138
* @param databaseName - The name of the database this instance represents.
136139
* @param options - Optional settings for Db construction
137140
*/
138-
constructor(
139-
/** @internal */
140-
readonly client: MongoClient,
141-
databaseName: string,
142-
options?: DbOptions
143-
) {
141+
constructor(client: MongoClient, databaseName: string, options?: DbOptions) {
144142
options = options ?? {};
145143

146144
// Filter the options
@@ -165,6 +163,8 @@ export class Db {
165163
// Namespace
166164
namespace: new MongoDBNamespace(databaseName)
167165
};
166+
167+
this.client = client;
168168
}
169169

170170
get databaseName(): string {

src/operations/search_indexes/create.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ import type { ClientSession } from '../../sessions';
66
import type { Callback } from '../../utils';
77
import { AbstractOperation } from '../operation';
88

9-
/** @public */
9+
/** @internal */
1010
export interface SearchIndexDescription {
1111
/** The name of the index. */
1212
name?: string;

test/unit/utils.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ import {
1919
shuffle
2020
} from '../mongodb';
2121

22-
describe.only('driver utils', function () {
22+
describe('driver utils', function () {
2323
describe('.hostMatchesWildcards', function () {
2424
context('when using domains', function () {
2525
context('when using exact match', function () {

0 commit comments

Comments
 (0)