File tree Expand file tree Collapse file tree 3 files changed +17
-0
lines changed
Sources/Graphiti/Connection/PagniationArguments Expand file tree Collapse file tree 3 files changed +17
-0
lines changed Original file line number Diff line number Diff line change @@ -6,4 +6,9 @@ public protocol BackwardPaginatable: Decodable {
66public struct BackwardPaginationArguments : BackwardPaginatable {
77 public let last : Int ?
88 public let before : String ?
9+
10+ public init ( last: Int ? , before: String ? ) {
11+ self . last = last
12+ self . before = before
13+ }
914}
Original file line number Diff line number Diff line change @@ -6,4 +6,9 @@ public protocol ForwardPaginatable: Decodable {
66public struct ForwardPaginationArguments : ForwardPaginatable {
77 public let first : Int ?
88 public let after : String ?
9+
10+ public init ( first: Int ? , after: String ? ) {
11+ self . first = first
12+ self . after = after
13+ }
914}
Original file line number Diff line number Diff line change @@ -6,6 +6,13 @@ public struct PaginationArguments: Paginatable {
66 public let after : String ?
77 public let before : String ?
88
9+ public init ( first: Int ? = nil , last: Int ? = nil , after: String ? = nil , before: String ? = nil ) {
10+ self . first = first
11+ self . last = last
12+ self . after = after
13+ self . before = before
14+ }
15+
916 init ( _ arguments: Paginatable ) {
1017 first = arguments. first
1118 last = arguments. last
You can’t perform that action at this time.
0 commit comments