Merge pull request #24538 from firede/graphql-list-fields

[graphql-list-fields] parentType is a GraphQLObjectType.
This commit is contained in:
Nathan Shively-Sanders
2018-03-26 13:19:22 -07:00
committed by GitHub

View File

@@ -2,7 +2,6 @@ import getFieldNames = require("graphql-list-fields");
import {
GraphQLID,
GraphQLInterfaceType,
GraphQLObjectType,
GraphQLResolveInfo,
GraphQLSchema,
@@ -13,7 +12,7 @@ const sampleGraphQLResolveInfo: GraphQLResolveInfo = {
fieldName: "",
fieldNodes: [],
returnType: GraphQLString,
parentType: new GraphQLInterfaceType({
parentType: new GraphQLObjectType({
name: "Sample",
fields: {
name: { type: GraphQLString }