Skip to content

Commit 179d737

Browse files
committed
chore: add totalEdges for Postgres snippet
1 parent 796a4f0 commit 179d737

File tree

2 files changed

+6
-0
lines changed

2 files changed

+6
-0
lines changed

dbquery/pagination/api.graphql

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,11 @@ the starting point).
2626
type CustomerConnection {
2727
edges: [CustomerEdge]
2828
pageInfo: PageInfo!
29+
30+
"""
31+
Total number of edges, may be `null` if the value cannot be determined.
32+
"""
33+
totalEdges: Int
2934
}
3035

3136
"""

dbquery/pagination/operations.graphql

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,5 +11,6 @@ query Customers($first: Int!, $after: String = "") {
1111
endCursor
1212
hasNextPage
1313
}
14+
totalEdges
1415
}
1516
}

0 commit comments

Comments
 (0)