Skip to content

Commit e75e80a

Browse files
Merge pull request #7 from GraphQLSwift/feat/RouterMethod-conversion
feat: Converts to use RouterMethods protocol
2 parents dd15ff2 + 5c5106f commit e75e80a

3 files changed

Lines changed: 12 additions & 3 deletions

File tree

Package.resolved

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

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,7 @@ Response:
9696
}
9797
```
9898

99-
See the `Router.graphql` function documentation for advanced configuration options.
99+
See the `graphql` function documentation for advanced configuration options.
100100

101101
### WebSockets
102102

Sources/GraphQLHummingbird/Router+graphql.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ import GraphQL
22
import Hummingbird
33
import HummingbirdWebSocket
44

5-
public extension Router {
5+
public extension RouterMethods {
66
/// Registers graphql routes that respond using the provided schema.
77
///
88
/// The resulting routes adhere to the [GraphQL over HTTP spec](https://github.com/graphql/graphql-over-http/blob/main/spec/GraphQLOverHTTP.md).
@@ -61,7 +61,7 @@ public extension Router {
6161
}
6262
}
6363

64-
public extension Router where Context: WebSocketRequestContext {
64+
public extension RouterMethods where Context: WebSocketRequestContext {
6565
/// Registers a graphql websocket route that responds using the provided schema.
6666
///
6767
/// WebSocket requests support the

0 commit comments

Comments
 (0)