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
I've upgraded to 2.3.8, and after doing so I started getting errors when trying to use the introspected schema for type generation in my react app. The error it's giving me is:
✖ Unable to find root schema type for operation type "subscription"!
I did some debugging to see what's being returned in the introspection query, and the things at the top of the response have changed from this:
Note the change to "subscriptionType" => nil. I haven't changed anything in my code, only updated the version of the gem. My app does include subscriptions, with a base type like this:
module Types
class SubscriptionType < GraphQL::Schema::Object
field :all_articles, subscription: Subscriptions::AllArticlesSubscription, null: true
.....
end
end
And this is included in the schema like so:
subscription(Types::SubscriptionType)
Versions
graphql version: 2.3.8
rails (or other framework): 7.1.3.4
The text was updated successfully, but these errors were encountered:
Describe the bug
I've upgraded to 2.3.8, and after doing so I started getting errors when trying to use the introspected schema for type generation in my react app. The error it's giving me is:
I did some debugging to see what's being returned in the introspection query, and the things at the top of the response have changed from this:
to this
Note the change to "subscriptionType" => nil. I haven't changed anything in my code, only updated the version of the gem. My app does include subscriptions, with a base type like this:
And this is included in the schema like so:
Versions
graphql
version: 2.3.8rails
(or other framework): 7.1.3.4The text was updated successfully, but these errors were encountered: