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
According to the spec, root operation types must be of type Object (3.3.1) and Object types must have at least one defined field (3.6). This is already validated for regular types but not for Query, Mutation, and Subscription.
According to the spec, root operation types must be of type
Object
(3.3.1) andObject
types must have at least one defined field (3.6). This is already validated for regular types but not forQuery
,Mutation
, andSubscription
.Effectively, this also means that every valid schema needs to define at least one query, cf. graphql/graphql-js#448 (comment)
The text was updated successfully, but these errors were encountered: