File tree Expand file tree Collapse file tree 1 file changed +7
-2
lines changed Expand file tree Collapse file tree 1 file changed +7
-2
lines changed Original file line number Diff line number Diff line change @@ -97,8 +97,6 @@ To execute a subscription use the `graphqlSubscribe` function:
97
97
``` swift
98
98
let subscriptionResult = try graphqlSubscribe (
99
99
schema : schema,
100
- request : " { hello }" ,
101
- eventLoopGroup : eventLoopGroup
102
100
).wait ()
103
101
// Must downcast from EventStream to concrete type to use in 'for await' loop below
104
102
let concurrentStream = subscriptionResult.stream ! as! ConcurrentEventStream
@@ -131,6 +129,13 @@ Those contributing to this package are expected to follow the [Swift Code of Con
131
129
[ Swift API Design Guidelines] ( https://swift.org/documentation/api-design-guidelines/ ) , and the
132
130
[ SSWG Technical Best Practices] ( https://github.com/swift-server/sswg/blob/main/process/incubation.md#technical-best-practices ) .
133
131
132
+ This repo uses [ SwiftFormat] ( https://github.com/nicklockwood/SwiftFormat ) , and includes lint checks to enforce these formatting standards.
133
+ To format your code, install ` swiftformat ` and run:
134
+
135
+ ``` bash
136
+ swiftformat .
137
+ ```
138
+
134
139
Most of this repo mirrors the structure of
135
140
(the canonical GraphQL implementation written in Javascript/Typescript)[ https://github.com/graphql/graphql-js ] . If there is any feature
136
141
missing, looking at the original code and "translating" it to Swift works, most of the time. For example:
You can’t perform that action at this time.
0 commit comments