spec/dummy/app/channels/graphql_channel.rb in graphql-1.8.0.pre10 vs spec/dummy/app/channels/graphql_channel.rb in graphql-1.8.0.pre11
- old
+ new
@@ -35,10 +35,10 @@
GraphQL::Subscriptions::Serialize.dump(obj)
end
end
end
- GraphQLSchema = GraphQL::Schema.define do
+ class GraphQLSchema < GraphQL::Schema
query(QueryType)
subscription(SubscriptionType)
use GraphQL::Subscriptions::ActionCableSubscriptions,
serializer: CustomSerializer
end