mirror of
https://github.com/zhigang1992/DefinitelyTyped.git
synced 2026-06-07 06:28:26 +08:00
Merge pull request #24538 from firede/graphql-list-fields
[graphql-list-fields] parentType is a GraphQLObjectType.
This commit is contained in:
@@ -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 }
|
||||
|
||||
Reference in New Issue
Block a user