SKILL25.0K installs2

Extension Querying Oql

Quick reference for the Caffeine Data Intelligence agent to query an OQL-exposing canister (schema() + execute()) through the `icp` CLI against the project's `backend` canister: read the schema, form JSON queries (filter / order / paginate / aggregate / dotted-path edges), and parse the Candid result rows.

Type
Skill
Author
caffeinelabs
Category
Database
GitHub stars
2
Installs
25.0K
Last updated
November 2, 2026

Install

npx skills add https://github.com/caffeinelabs/skills --skill extension-querying-oql

Use cases


Frequently Asked Questions

Which canister does this reference target?

It queries an OQL-exposing canister through the icp CLI against the project's backend canister.

What query features does OQL support here?

Filtering, ordering, pagination, aggregation, and dotted-path edges, all expressed as JSON.

How do I read the data model first?

Call schema() on the canister to read its schema before forming your query.


About this skill

A quick reference for querying an OQL-exposing canister through the icp CLI against a project's backend canister, using schema() and execute(). It covers reading the schema, forming JSON queries with filters, ordering, pagination, aggregation, and dotted-path edges, and parsing the returned Candid rows. Useful for the Caffeine Data Intelligence agent or anyone querying OQL data from the command line.

Summary written with AI assistance from the project's public description.


Categories


More from caffeinelabs


Similar Skills