File tree 1 file changed +2
-2
lines changed
1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -32,7 +32,7 @@ GraphQLRxSwift provides an `ObservableEventStream` wrapper class that can be use
32
32
` EventStream ` requirements. A convenience method ` toEventStream ` is added to all Observable instances.
33
33
This class is used when defining subscription resolvers, as shown below:
34
34
35
- ```
35
+ ``` swift
36
36
func subscribeUser (context : HelloContext, arguments : NoArguments) -> EventStream<Any > {
37
37
PublishSubject< Any > ().toEventStream ()
38
38
}
@@ -42,7 +42,7 @@ Also provided is a `ObservableSubscriptionEventStream` type alias that can be us
42
42
It is guaranteed that the stream returned by any subscription query whose resolver returns an ` ObservableEventStream ` will be a
43
43
` ObservableSubscriptionEventStream ` . For example:
44
44
45
- ```
45
+ ``` swift
46
46
let subscriptionResult = try graphQLApi.subscribe (
47
47
request : request,
48
48
context : api.context ,
You can’t perform that action at this time.
0 commit comments