Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions Sources/Graphiti/Connection/Connection.swift
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@ import GraphQL
import NIO

public struct Connection<Node: Encodable>: Encodable {
let edges: [Edge<Node>]
let pageInfo: PageInfo
public let edges: [Edge<Node>]
public let pageInfo: PageInfo
}

@available(OSX 10.15, *)
Expand Down
6 changes: 3 additions & 3 deletions Sources/Graphiti/Connection/Edge.swift
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ protocol Edgeable {
var cursor: String { get }
}

struct Edge<Node: Encodable>: Edgeable, Encodable {
let node: Node
let cursor: String
public struct Edge<Node: Encodable>: Edgeable, Encodable {
public let node: Node
public let cursor: String
}
10 changes: 5 additions & 5 deletions Sources/Graphiti/Connection/PageInfo.swift
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
struct PageInfo: Codable {
let hasPreviousPage: Bool
let hasNextPage: Bool
let startCursor: String?
let endCursor: String?
public struct PageInfo: Codable {
public let hasPreviousPage: Bool
public let hasNextPage: Bool
public let startCursor: String?
public let endCursor: String?
}