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

+2-2
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,8 @@
66
"repositoryURL": "https://github.com/GraphQLSwift/Graphiti.git",
77
"state": {
88
"branch": null,
9-
"revision": "af903a243862c6427935677b91f67df0c21f2a71",
10-
"version": "0.26.0"
9+
"revision": "c9bc9d1cc9e62e71a824dc178630bfa8b8a6e2a4",
10+
"version": "1.0.0"
1111
}
1212
},
1313
{

Package.swift

+3-3
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

+2-2
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)