-
- Downloads
Implement `repositoriesLike` query
As part of #151, this requires we introduce the ability to list repositories based on `LIKE` SQL syntax, and then performing the per-repo lookups. Right now, we're not wrapping this up with Goroutines to improve performance, and we'll optimise it in the future if needed. We need to make sure we look up whether `totalAdvisories`, `totalDependencies` or `totalPolicyViolations` are found in the query and then generate the total values as needed, as we cannot wire in the resolver (via GQLGen) to wait until the `repositories` field has executed. Co-authored-by:Keith Lyall <keith.lyall@deliveroo.co.uk>
parent
245d7a63
No related branches found
No related tags found
Showing
- internal/graph/db/queries.sql 26 additions, 0 deletionsinternal/graph/db/queries.sql
- internal/graph/db/queries.sql.go 63 additions, 0 deletionsinternal/graph/db/queries.sql.go
- internal/graph/generated.go 151 additions, 3 deletionsinternal/graph/generated.go
- internal/graph/schema.graphqls 1 addition, 0 deletionsinternal/graph/schema.graphqls
- internal/graph/schema.resolvers.go 94 additions, 0 deletionsinternal/graph/schema.resolvers.go
Loading
Please register or sign in to comment