MCPcopy Create free account
hub / github.com/SpecterOps/BloodHound / runCountQuery

Method runCountQuery

cmd/api/src/queries/graph.go:1015–1018  ·  view source on GitHub ↗
(ctx context.Context, node *graph.Node, params EntityQueryParameters, cacheEnabled bool)

Source from the content-addressed store, hash-verified

1013}
1014
1015func (s *GraphQuery) runCountQuery(ctx context.Context, node *graph.Node, params EntityQueryParameters, cacheEnabled bool) (any, int, error) {
1016 result, err := s.runMaybeCachedEntityQuery(ctx, node, params, cacheEnabled)
1017 return nil, result.Len(), err
1018}
1019
1020func (s *GraphQuery) runPathQuery(ctx context.Context, primaryDisplayKinds graphschema.PrimaryDisplayKinds, node *graph.Node, pathDelegate any) (map[string]any, int, error) {
1021 var (

Callers 1

GetEntityResultsMethod · 0.95

Calls 2

LenMethod · 0.80

Tested by

no test coverage detected