File tree Expand file tree Collapse file tree 4 files changed +10
-10
lines changed
operations/search_indexes Expand file tree Collapse file tree 4 files changed +10
-10
lines changed Original file line number Diff line number Diff line change @@ -2,10 +2,10 @@ import type { Collection } from '../collection';
2
2
import type { AggregateOptions } from '../operations/aggregate' ;
3
3
import { AggregationCursor } from './aggregation_cursor' ;
4
4
5
- /** @public */
5
+ /** @internal */
6
6
export type ListSearchIndexesOptions = AggregateOptions ;
7
7
8
- /** @public */
8
+ /** @internal */
9
9
export class ListSearchIndexesCursor extends AggregationCursor < { name : string } > {
10
10
/** @internal */
11
11
constructor (
Original file line number Diff line number Diff line change @@ -121,6 +121,9 @@ export class Db {
121
121
/** @internal */
122
122
s : DbPrivate ;
123
123
124
+ /** @internal */
125
+ readonly client : MongoClient ;
126
+
124
127
public static SYSTEM_NAMESPACE_COLLECTION = CONSTANTS . SYSTEM_NAMESPACE_COLLECTION ;
125
128
public static SYSTEM_INDEX_COLLECTION = CONSTANTS . SYSTEM_INDEX_COLLECTION ;
126
129
public static SYSTEM_PROFILE_COLLECTION = CONSTANTS . SYSTEM_PROFILE_COLLECTION ;
@@ -135,12 +138,7 @@ export class Db {
135
138
* @param databaseName - The name of the database this instance represents.
136
139
* @param options - Optional settings for Db construction
137
140
*/
138
- constructor (
139
- /** @internal */
140
- readonly client : MongoClient ,
141
- databaseName : string ,
142
- options ?: DbOptions
143
- ) {
141
+ constructor ( client : MongoClient , databaseName : string , options ?: DbOptions ) {
144
142
options = options ?? { } ;
145
143
146
144
// Filter the options
@@ -165,6 +163,8 @@ export class Db {
165
163
// Namespace
166
164
namespace : new MongoDBNamespace ( databaseName )
167
165
} ;
166
+
167
+ this . client = client ;
168
168
}
169
169
170
170
get databaseName ( ) : string {
Original file line number Diff line number Diff line change @@ -6,7 +6,7 @@ import type { ClientSession } from '../../sessions';
6
6
import type { Callback } from '../../utils' ;
7
7
import { AbstractOperation } from '../operation' ;
8
8
9
- /** @public */
9
+ /** @internal */
10
10
export interface SearchIndexDescription {
11
11
/** The name of the index. */
12
12
name ?: string ;
Original file line number Diff line number Diff line change @@ -19,7 +19,7 @@ import {
19
19
shuffle
20
20
} from '../mongodb' ;
21
21
22
- describe . only ( 'driver utils' , function ( ) {
22
+ describe ( 'driver utils' , function ( ) {
23
23
describe ( '.hostMatchesWildcards' , function ( ) {
24
24
context ( 'when using domains' , function ( ) {
25
25
context ( 'when using exact match' , function ( ) {
You can’t perform that action at this time.
0 commit comments