@@ -234,7 +234,7 @@ export class Collection<TSchema extends Document = Document> {
234234 */
235235 get readConcern ( ) : ReadConcern | undefined {
236236 if ( this . s . readConcern == null ) {
237- return this . s . db . readConcern ;
237+ return this . db . readConcern ;
238238 }
239239 return this . s . readConcern ;
240240 }
@@ -245,7 +245,7 @@ export class Collection<TSchema extends Document = Document> {
245245 */
246246 get readPreference ( ) : ReadPreference | undefined {
247247 if ( this . s . readPreference == null ) {
248- return this . s . db . readPreference ;
248+ return this . db . readPreference ;
249249 }
250250
251251 return this . s . readPreference ;
@@ -261,7 +261,7 @@ export class Collection<TSchema extends Document = Document> {
261261 */
262262 get writeConcern ( ) : WriteConcern | undefined {
263263 if ( this . s . writeConcern == null ) {
264- return this . s . db . writeConcern ;
264+ return this . db . writeConcern ;
265265 }
266266 return this . s . writeConcern ;
267267 }
@@ -515,7 +515,7 @@ export class Collection<TSchema extends Document = Document> {
515515 * @param options - Optional settings for the command
516516 */
517517 async drop ( options ?: DropCollectionOptions ) : Promise < boolean > {
518- return await this . s . db . dropCollection ( this . collectionName , options ) ;
518+ return await this . db . dropCollection ( this . collectionName , options ) ;
519519 }
520520
521521 /**
@@ -584,7 +584,7 @@ export class Collection<TSchema extends Document = Document> {
584584 */
585585 async options ( options ?: OperationOptions ) : Promise < Document > {
586586 options = resolveOptions ( this , options ) ;
587- const [ collection ] = await this . s . db
587+ const [ collection ] = await this . db
588588 . listCollections ( { name : this . collectionName } , { ...options , nameOnly : false } )
589589 . toArray ( ) ;
590590
0 commit comments