GraphQLSwift / Graphiti

The Swift GraphQL Schema framework for macOS and Linux
MIT License
531 stars 67 forks source link

Fixing HelloWorldAsyncTests and Added missing initializer for SubscriptionField #79

Closed d-exclaimation closed 2 years ago

d-exclaimation commented 2 years ago

This fixes the HelloWorldAsyncTests to actually use the async subscription resolver, HelloResolver.asyncSubscribeUser, instead of using HelloResolver.subscribeUser.

This also adds the missing initializer for SubscriptionField that takes only the async subscription resolver without the field resolver (SubscriptionField.init(_:as:atSub:))