define-query-migration

Installation
SKILL.md

Migrating to Zero Custom Queries (defineQuery API)

This skill helps migrate from Zero's deprecated ad-hoc queries (zero.query.*) to the new defineQuery API.

Prerequisites:

  • You should have already adopted the new auth API. The parameter to auth in the Zero constructor or ZeroProvider should be a string, not a function. If this is not the case, see the auth-callback-to-string-auth.

  • Not required, but it's usually easiest to upgrade to defineMutators first. You should see defineMutators in this codebase. If not, see factory-mutators-to-define-mutators.

Docs:


CRITICAL: All Query Inputs Are Untrusted

Installs
3
GitHub Stars
4
First Seen
May 19, 2026