File tree 2 files changed +9
-9
lines changed 2 files changed +9
-9
lines changed Original file line number Diff line number Diff line change @@ -16,13 +16,13 @@ import {
16
16
transformWhere ,
17
17
transformUpdate ,
18
18
} from './MongoTransform' ;
19
- // $FlowFixMe
19
+ // @flow -disable-next
20
20
import Parse from 'parse/node' ;
21
- // $FlowFixMe
21
+ // @flow -disable-next
22
22
import _ from 'lodash' ;
23
23
import defaults from '../../../defaults' ;
24
24
25
- // $FlowFixMe
25
+ // @flow -disable-next
26
26
const mongodb = require ( 'mongodb' ) ;
27
27
const MongoClient = mongodb . MongoClient ;
28
28
const ReadPreference = mongodb . ReadPreference ;
@@ -98,7 +98,7 @@ export class MongoStorageAdapter implements StorageAdapter {
98
98
_collectionPrefix : string ;
99
99
_mongoOptions : Object ;
100
100
// Public
101
- connectionPromise ;
101
+ connectionPromise : Promise < any > ;
102
102
database : any ;
103
103
_maxTimeMS : ?number ;
104
104
canSortOnJoinTables : boolean ;
@@ -516,7 +516,7 @@ export class MongoStorageAdapter implements StorageAdapter {
516
516
}
517
517
518
518
_parseReadPreference ( readPreference : ?string ) : ?string {
519
- if ( readPreference ) {
519
+ if ( readPreference != null ) {
520
520
switch ( readPreference ) {
521
521
case 'PRIMARY' :
522
522
readPreference = ReadPreference . PRIMARY ;
Original file line number Diff line number Diff line change @@ -3,10 +3,10 @@ export type SchemaType = any;
3
3
export type StorageClass = any ;
4
4
export type QueryType = any ;
5
5
export type QueryOptionsType = {
6
- skip ?: number ;
7
- limit ? : number ;
8
- sort ? : any ;
9
- keys ?: string [ ] ;
6
+ skip ?: ? number ;
7
+ limit ?: ? number ;
8
+ sort ?: ? any ;
9
+ keys ?: ? string [ ] ;
10
10
readPreference ?: ?string ;
11
11
} ;
12
12
You can’t perform that action at this time.
0 commit comments