Skip to content
This repository was archived by the owner on Sep 30, 2024. It is now read-only.

Commit e5b9e38

Browse files
Make repository and path filters objects instead of primitives
1 parent e50bb3b commit e5b9e38

File tree

1 file changed

+14
-2
lines changed

1 file changed

+14
-2
lines changed

cmd/frontend/graphqlbackend/codeintel.codenav.graphql

Lines changed: 14 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -303,14 +303,26 @@ input UsagesFilter {
303303
or: [UsagesFilter!]
304304
not: UsagesFilter
305305
# TODO: Can we be flexible here and allow patterns while still maintaining fast queries.
306-
repository: String
307-
path: String
306+
repository: RepositoryFilter
307+
path: PathFilter
308308
kind: SymbolUsageKind
309309
# TODO: Provide a way of controlling fallback behavior for indexes?
310310
# Not super sure how that would work, given that for different repositories,
311311
# the hashes will all be different?
312312
}
313313

314+
input RepositoryFilter {
315+
name: StringComparator!
316+
}
317+
318+
input PathFilter {
319+
name: StringComparator!
320+
}
321+
322+
input StringComparator {
323+
eq: String
324+
}
325+
314326
enum SymbolUsageKind {
315327
Definition,
316328
Reference,

0 commit comments

Comments
 (0)