Skip to content

Commit 1283986

Browse files
committed
Add relayNodeInterface to ParseGraphQLSchema
1 parent eff3ed4 commit 1283986

File tree

1 file changed

+21
-2
lines changed

1 file changed

+21
-2
lines changed

src/GraphQL/ParseGraphQLSchema.js

Lines changed: 21 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,10 @@
11
import Parse from 'parse/node';
2-
import { GraphQLSchema, GraphQLObjectType } from 'graphql';
2+
import {
3+
GraphQLSchema,
4+
GraphQLObjectType,
5+
DocumentNode,
6+
GraphQLNamedType,
7+
} from 'graphql';
38
import { mergeSchemas, SchemaDirectiveVisitor } from 'graphql-tools';
49
import requiredParameter from '../requiredParameter';
510
import * as defaultGraphQLTypes from './loaders/defaultGraphQLTypes';
@@ -48,14 +53,27 @@ class ParseGraphQLSchema {
4853
databaseController: DatabaseController;
4954
parseGraphQLController: ParseGraphQLController;
5055
parseGraphQLConfig: ParseGraphQLConfig;
51-
graphQLCustomTypeDefs: any;
56+
log: any;
57+
appId: string;
58+
graphQLCustomTypeDefs: ?(
59+
| string
60+
| GraphQLSchema
61+
| DocumentNode
62+
| GraphQLNamedType[]
63+
);
5264

5365
constructor(
5466
params: {
5567
databaseController: DatabaseController,
5668
parseGraphQLController: ParseGraphQLController,
5769
log: any,
5870
appId: string,
71+
graphQLCustomTypeDefs: ?(
72+
| string
73+
| GraphQLSchema
74+
| DocumentNode
75+
| GraphQLNamedType[]
76+
),
5977
} = {}
6078
) {
6179
this.parseGraphQLController =
@@ -105,6 +123,7 @@ class ParseGraphQLSchema {
105123
this.graphQLSubscriptions = {};
106124
this.graphQLSchemaDirectivesDefinitions = null;
107125
this.graphQLSchemaDirectives = {};
126+
this.relayNodeInterface = null;
108127

109128
defaultGraphQLTypes.load(this);
110129
schemaTypes.load(this);

0 commit comments

Comments
 (0)