Query.eval
The query system provides a programmatic interface for analyzing build dependencies and target relationships. Queries are constructed using a chain API and are lazily evaluated only when
.eval() is explicitly called.
The entry point is ctx.bazel.query(), which returns a query for creating initial
query expressions. Most operations operate on query objects, which represent
sets of targets that can be filtered, transformed, and combined.
Example
Query.raw
Replaces the query
expression with a raw query expression string.
This escape hatch allows direct use of the underlying query language for complex cases,
while still supporting further chaining.

