File tree Expand file tree Collapse file tree 1 file changed +21
-2
lines changed Expand file tree Collapse file tree 1 file changed +21
-2
lines changed Original file line number Diff line number Diff line change 1
1
import Parse from 'parse/node' ;
2
- import { GraphQLSchema , GraphQLObjectType } from 'graphql' ;
2
+ import {
3
+ GraphQLSchema ,
4
+ GraphQLObjectType ,
5
+ DocumentNode ,
6
+ GraphQLNamedType ,
7
+ } from 'graphql' ;
3
8
import { mergeSchemas , SchemaDirectiveVisitor } from 'graphql-tools' ;
4
9
import requiredParameter from '../requiredParameter' ;
5
10
import * as defaultGraphQLTypes from './loaders/defaultGraphQLTypes' ;
@@ -48,14 +53,27 @@ class ParseGraphQLSchema {
48
53
databaseController : DatabaseController ;
49
54
parseGraphQLController : ParseGraphQLController ;
50
55
parseGraphQLConfig : ParseGraphQLConfig ;
51
- graphQLCustomTypeDefs : any ;
56
+ log : any ;
57
+ appId : string ;
58
+ graphQLCustomTypeDefs : ?(
59
+ | string
60
+ | GraphQLSchema
61
+ | DocumentNode
62
+ | GraphQLNamedType [ ]
63
+ ) ;
52
64
53
65
constructor (
54
66
params : {
55
67
databaseController : DatabaseController ,
56
68
parseGraphQLController : ParseGraphQLController ,
57
69
log : any ,
58
70
appId : string ,
71
+ graphQLCustomTypeDefs : ?(
72
+ | string
73
+ | GraphQLSchema
74
+ | DocumentNode
75
+ | GraphQLNamedType [ ]
76
+ ) ,
59
77
} = { }
60
78
) {
61
79
this . parseGraphQLController =
@@ -105,6 +123,7 @@ class ParseGraphQLSchema {
105
123
this . graphQLSubscriptions = { } ;
106
124
this . graphQLSchemaDirectivesDefinitions = null ;
107
125
this . graphQLSchemaDirectives = { } ;
126
+ this . relayNodeInterface = null ;
108
127
109
128
defaultGraphQLTypes . load ( this ) ;
110
129
schemaTypes . load ( this ) ;
You can’t perform that action at this time.
0 commit comments