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
5 changes: 5 additions & 0 deletions dbquery/pagination/api.graphql
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,11 @@ the starting point).
type CustomerConnection {
edges: [CustomerEdge]
pageInfo: PageInfo!

"""
Total number of edges, will be `null` if the value cannot be determined.
"""
totalEdges: Int
}

"""
Expand Down
1 change: 1 addition & 0 deletions dbquery/pagination/operations.graphql
Original file line number Diff line number Diff line change
Expand Up @@ -11,5 +11,6 @@ query Customers($first: Int!, $after: String = "") {
endCursor
hasNextPage
}
totalEdges
}
}
6 changes: 4 additions & 2 deletions dbquery/pagination/tests/Test.js
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,8 @@ describe(testDescription, function () {
pageInfo: {
hasNextPage: true,
endCursor: CURSOR
}
},
totalEdges: 10
}
},
},
Expand Down Expand Up @@ -72,7 +73,8 @@ describe(testDescription, function () {
pageInfo: {
endCursor: "eyJjIjoiTDpRdWVyeTpjdXN0b21lcnMiLCJvIjozfQ==",
hasNextPage: true
}
},
totalEdges: 10
}
},
},
Expand Down