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-oqlUse cases
- Read a canister's schema before forming an OQL query.
- Build JSON queries with filters, ordering, pagination, aggregation, and dotted-path edges.
- Parse Candid result rows returned by execute() through the icp CLI.
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.
More from caffeinelabs
Extension Email Calendar Events
Support for organising events/meetings and sending invitations by email.
by caffeinelabs
Extension Stripe
Payment support based on Stripe, supporting credit cards and debit cards
by caffeinelabs
Extension Qr Code
QR code scanner using the camera.
by caffeinelabs
Extension Camera
Web-camera support.
by caffeinelabs
Similar Skills
Find Skills
Helps users discover and install agent skills when they ask questions like "how do I do X", "find a skill for X", "is there a skill that can...", o...
by vercel-labs
Grill Me
A relentless interview to sharpen a plan or design.
by mattpocock
Ai Video Generation
Generate AI videos with Google Veo, Seedance 2.0, HappyHorse, Wan, Grok and 40+ models via inference.sh CLI. Models: Veo 3.1, Veo 3, Seedance 2.0,...
by inference-sh
Ai Image Generation
Generate AI images with GPT-Image-2, FLUX, Gemini, Grok, Seedream, Reve and 50+ models via inference.sh CLI. Models: GPT-Image-2, FLUX Dev LoRA, FL...
by inference-sh