You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When I try to query a GraphQL server with a GraphQLObject having a constructor field I get the error TypeError: nodeAndDefs[responseName].push is not a function
Intended outcome
Server should not throw error
Actual outcome
TypeError: nodeAndDefs[responseName].push is not a function
How to reproduce
Create a GraphQL object with a constructor field
new GraphQLObjectType({
name : 'FooType',
fields : {
['constructor'] : {
type : new GraphQLNonNull(GraphQLString)
},
}
})
The query associated:
query dummyQuery {
...subscriptionInfo
__typename
}
fragment subscriptionInfo on SubscriptionType {
constructor
__typename
}
Let me know if you need more insights
The text was updated successfully, but these errors were encountered:
When I try to query a GraphQL server with a GraphQLObject having a constructor field I get the error
TypeError: nodeAndDefs[responseName].push is not a function
Intended outcome
Server should not throw error
Actual outcome
TypeError: nodeAndDefs[responseName].push is not a function
How to reproduce
Create a GraphQL object with a constructor field
The query associated:
Let me know if you need more insights
The text was updated successfully, but these errors were encountered: