Skip to content

Commit

Permalink
feat: add totalCount to search results (#68)
Browse files Browse the repository at this point in the history
Signed-off-by: Sarah Funkhouser <[email protected]>
  • Loading branch information
golanglemonade authored Dec 27, 2024
1 parent efb1774 commit 7375f21
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion genhooks/templates/search/graph.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,17 @@ union SearchResult =
{{- end }}

type SearchResultConnection {
"""
Information to aid in pagination.
"""
page: PageInfo!
"""
Identifies the total count of items in the connection.
"""
totalCount: Int!
"""
A list of nodes with results.
"""
nodes: [SearchResult!]!
}

Expand Down

0 comments on commit 7375f21

Please sign in to comment.