@@ -70,7 +70,7 @@ describe('ParseGraphQLSchema', () => {
70
70
const graphQLSubscriptions = parseGraphQLSchema . graphQLSubscriptions ;
71
71
const newClassObject = new Parse . Object ( 'NewClass' ) ;
72
72
await newClassObject . save ( ) ;
73
- await databaseController . schemaCache . clear ( ) ;
73
+ await parseServer . config . schemaCache . clear ( ) ;
74
74
await new Promise ( resolve => setTimeout ( resolve , 200 ) ) ;
75
75
await parseGraphQLSchema . load ( ) ;
76
76
expect ( parseClasses ) . not . toBe ( parseGraphQLSchema . parseClasses ) ;
@@ -428,14 +428,14 @@ describe('ParseGraphQLSchema', () => {
428
428
log : defaultLogger ,
429
429
appId,
430
430
} ) ;
431
- await parseGraphQLSchema . databaseController . schemaCache . clear ( ) ;
431
+ await parseGraphQLSchema . schemaCache . clear ( ) ;
432
432
const schema1 = await parseGraphQLSchema . load ( ) ;
433
433
const types1 = parseGraphQLSchema . graphQLTypes ;
434
434
const queries1 = parseGraphQLSchema . graphQLQueries ;
435
435
const mutations1 = parseGraphQLSchema . graphQLMutations ;
436
436
const user = new Parse . Object ( 'User' ) ;
437
437
await user . save ( ) ;
438
- await parseGraphQLSchema . databaseController . schemaCache . clear ( ) ;
438
+ await parseGraphQLSchema . schemaCache . clear ( ) ;
439
439
const schema2 = await parseGraphQLSchema . load ( ) ;
440
440
const types2 = parseGraphQLSchema . graphQLTypes ;
441
441
const queries2 = parseGraphQLSchema . graphQLQueries ;
@@ -458,14 +458,14 @@ describe('ParseGraphQLSchema', () => {
458
458
} ) ;
459
459
const car1 = new Parse . Object ( 'Car' ) ;
460
460
await car1 . save ( ) ;
461
- await parseGraphQLSchema . databaseController . schemaCache . clear ( ) ;
461
+ await parseGraphQLSchema . schemaCache . clear ( ) ;
462
462
const schema1 = await parseGraphQLSchema . load ( ) ;
463
463
const types1 = parseGraphQLSchema . graphQLTypes ;
464
464
const queries1 = parseGraphQLSchema . graphQLQueries ;
465
465
const mutations1 = parseGraphQLSchema . graphQLMutations ;
466
466
const car2 = new Parse . Object ( 'car' ) ;
467
467
await car2 . save ( ) ;
468
- await parseGraphQLSchema . databaseController . schemaCache . clear ( ) ;
468
+ await parseGraphQLSchema . schemaCache . clear ( ) ;
469
469
const schema2 = await parseGraphQLSchema . load ( ) ;
470
470
const types2 = parseGraphQLSchema . graphQLTypes ;
471
471
const queries2 = parseGraphQLSchema . graphQLQueries ;
@@ -488,13 +488,13 @@ describe('ParseGraphQLSchema', () => {
488
488
} ) ;
489
489
const car = new Parse . Object ( 'Car' ) ;
490
490
await car . save ( ) ;
491
- await parseGraphQLSchema . databaseController . schemaCache . clear ( ) ;
491
+ await parseGraphQLSchema . schemaCache . clear ( ) ;
492
492
const schema1 = await parseGraphQLSchema . load ( ) ;
493
493
const queries1 = parseGraphQLSchema . graphQLQueries ;
494
494
const mutations1 = parseGraphQLSchema . graphQLMutations ;
495
495
const cars = new Parse . Object ( 'cars' ) ;
496
496
await cars . save ( ) ;
497
- await parseGraphQLSchema . databaseController . schemaCache . clear ( ) ;
497
+ await parseGraphQLSchema . schemaCache . clear ( ) ;
498
498
const schema2 = await parseGraphQLSchema . load ( ) ;
499
499
const queries2 = parseGraphQLSchema . graphQLQueries ;
500
500
const mutations2 = parseGraphQLSchema . graphQLMutations ;
@@ -534,7 +534,7 @@ describe('ParseGraphQLSchema', () => {
534
534
535
535
await data . save ( ) ;
536
536
537
- await parseGraphQLSchema . databaseController . schemaCache . clear ( ) ;
537
+ await parseGraphQLSchema . schemaCache . clear ( ) ;
538
538
await parseGraphQLSchema . load ( ) ;
539
539
540
540
const queries1 = parseGraphQLSchema . graphQLQueries ;
@@ -571,7 +571,7 @@ describe('ParseGraphQLSchema', () => {
571
571
572
572
await data . save ( ) ;
573
573
574
- await parseGraphQLSchema . databaseController . schemaCache . clear ( ) ;
574
+ await parseGraphQLSchema . schemaCache . clear ( ) ;
575
575
await parseGraphQLSchema . load ( ) ;
576
576
577
577
const mutations = parseGraphQLSchema . graphQLMutations ;
0 commit comments