extension-querying-oql
Installation
SKILL.md
Querying OQL — quick reference
An OQL canister exposes two read-only methods:
| Method | Returns | Purpose |
|---|---|---|
schema() |
one JSON Text |
Catalogue of the canister's entities: each entity's primary key, fields, and edges. |
execute(qJson : text) |
typed Candid Result |
Runs a JSON-encoded query and returns matching rows. |
Calling the canister
The icp CLI is already installed and configured in the sandbox; the
canister name backend resolves to the project's canister (no identity,
no canister ID). Both methods are query calls, so every invocation
uses --query: