Skip to content

Commit 510ebf9

Browse files
Updates for compliance with Graphiti changes
1 parent 9c33d15 commit 510ebf9

File tree

3 files changed

+8
-7
lines changed

3 files changed

+8
-7
lines changed

Package.resolved

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

Package.swift

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,8 @@ let package = Package(
88
],
99
dependencies: [
1010
.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")),
11+
// TODO: Mainline after this PR is merged: https://github.com/GraphQLSwift/Graphiti/pull/69
12+
.package(url: "https://github.com/NeedleInAJayStack/Graphiti.git", .branch("fix/ScalarInput")),
1213
.package(url: "https://github.com/ReactiveX/RxSwift.git", .upToNextMajor(from: "6.1.0"))
1314
],
1415
targets: [

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)