Compile (partially evaluate) a query on OPA
opa_compile_queryPartially evaluate a Rego query by sending it to OPA's compile endpoint to obtain the residual query after substituting known input.
Instructions
Send a query to the OPA server's /v1/compile endpoint for partial evaluation. Returns the residual query -- what remains after substituting in everything that's known.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| query | Yes | Rego query to compile, e.g. "data.rbac.allow == true". | |
| input | No | Optional partial input document. | |
| unknowns | No | Refs to treat as unknown (default: ["input"]). |