Skip to content

Commit e8d65f6

Browse files
committed
fix(search): migrate deprecated field
1 parent 611539f commit e8d65f6

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

PSSourcegraph/queries/Search.graphql

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -107,7 +107,7 @@ query Search($query: String!, $patternType: SearchPatternType) {
107107
timedout {
108108
...RepositoryFields
109109
}
110-
resultCount
110+
matchCount
111111
elapsedMilliseconds
112112
}
113113
}

PSSourcegraph/src/search.psm1

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ function Search- {
6666
$data.search.results.timedout.name | Write-Warning
6767
}
6868
if ($PSCmdlet.PagingParameters.IncludeTotalCount) {
69-
$PSCmdlet.PagingParameters.NewTotalCount($data.search.results.resultCount, 1)
69+
$PSCmdlet.PagingParameters.NewTotalCount($data.search.results.matchCount, 1)
7070
}
7171
if ($data.search.results.limitHit) {
7272
Write-Warning "Result limit hit"

0 commit comments

Comments
 (0)