Skip to content

Commit c7ec659

Browse files
Merge pull request #4 from NeedleInAJayStack/fix/ScalarInput
Updates for compliance with Graphiti 1.0.0 EventStream changes
2 parents 9c33d15 + 800da39 commit c7ec659

File tree

3 files changed

+7
-7
lines changed

3 files changed

+7
-7
lines changed

Package.resolved

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Package.swift

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,9 +7,9 @@ let package = Package(
77
.library(name: "GraphQLRxSwift", targets: ["GraphQLRxSwift"]),
88
],
99
dependencies: [
10-
.package(url: "https://github.com/GraphQLSwift/GraphQL.git", .upToNextMajor(from: "2.0.0")),
11-
.package(url: "https://github.com/GraphQLSwift/Graphiti.git", .upToNextMajor(from: "0.22.0")),
12-
.package(url: "https://github.com/ReactiveX/RxSwift.git", .upToNextMajor(from: "6.1.0"))
10+
.package(url: "https://github.com/GraphQLSwift/GraphQL.git", from: "2.0.0"),
11+
.package(url: "https://github.com/GraphQLSwift/Graphiti.git", from: "1.0.0"),
12+
.package(url: "https://github.com/ReactiveX/RxSwift.git", from: "6.1.0")
1313
],
1414
targets: [
1515
.target(name: "GraphQLRxSwift", dependencies: ["GraphQL", "Graphiti", "RxSwift"]),

Tests/GraphQLRxSwiftTests/Graphiti/GraphitiRxSwiftTests.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ import NIO
55
import RxSwift
66
@testable import GraphQLRxSwift
77

8-
let pubsub = PublishSubject<Any>()
8+
let pubsub = PublishSubject<User>()
99

1010
struct ID : Codable {
1111
let id: String
@@ -100,7 +100,7 @@ struct HelloResolver {
100100
User(arguments.user)
101101
}
102102

103-
func subscribeUser(context: HelloContext, arguments: NoArguments) -> EventStream<Any> {
103+
func subscribeUser(context: HelloContext, arguments: NoArguments) -> EventStream<User> {
104104
pubsub.toEventStream()
105105
}
106106
}

0 commit comments

Comments
 (0)