Skip to content

Commit 4c3ef11

Browse files
docs: Adds config nested type docs
1 parent ed0c3a0 commit 4c3ef11

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

Sources/GraphQLHummingbird/GraphQLConfig.swift

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,7 @@ public struct GraphQLConfig<
4545
self.websocket = websocket
4646
}
4747

48+
/// A collection of encoders and decoders used by the GraphQL system
4849
public struct Coders: Sendable {
4950
let graphQLJSONEncoder: GraphQLJSONEncoder
5051
let jsonDecoder: JSONDecoder
@@ -67,6 +68,7 @@ public struct GraphQLConfig<
6768
}
6869
}
6970

71+
/// An embeddable GraphQL IDE
7072
public struct IDE: Sendable, Equatable {
7173
/// GraphiQL: https://github.com/graphql/graphiql
7274
public static var graphiql: Self {
@@ -85,6 +87,7 @@ public struct GraphQLConfig<
8587
}
8688
}
8789

90+
/// A GraphQL subscription implementation
8891
public struct SubscriptionProtocol: Sendable, Hashable {
8992
/// Expose GraphQL subscriptions over WebSockets
9093
public static var websocket: Self {
@@ -97,6 +100,7 @@ public struct GraphQLConfig<
97100
}
98101
}
99102

103+
/// WebSocket configuration
100104
public struct WebSocket: Sendable {
101105
let onWebSocketInit: @Sendable (WebSocketInit, Request, Context) async throws -> WebSocketInitResult
102106

0 commit comments

Comments
 (0)