convex-ents

Query related documents and edges in Convex Ents with type-safe patterns.

434|33|Updated Jul 27, 2025
One-click install
npx skills add https://github.com/udecode/better-convex --skill convex-ents
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: convex-ents
Source: https://github.com/udecode/better-convex/tree/main/.claude/skills/convex-ents
Command: npx skills add https://github.com/udecode/better-convex --skill convex-ents

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Convex Ents provide ergonomic patterns for querying related documents, defining edges, relationships, default values, and collocation of authorization rules within Convex's relational layer on top of the database, enabling consistent and productive data modeling.

Core Features & Use Cases

  • Ergonomic querying of related documents and edges
  • Default values and collocation of authorization rules
  • Use Case: Define and query relationships in a Convex database with type-safe patterns for access control

Quick Start

Set up convex-ents in your Convex project and begin querying related documents with ergonomic patterns.

Frequently Asked Questions about convex-ents

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I query related documents and edges in Convex with type-safe patterns?

To query related documents in Convex, you can use ergonomic patterns to traverse edges and relationships predictably. This approach ensures type-safe database interactions while collocating authorization rules within the data layer.

What is the best way to define default values and access control rules in a Convex database?

The best way to define defaults and access control in Convex is by collocating authorization rules with your data models. This creates consistent database interactions and enforces access control directly at the relational layer.

Does Convex support collocation of authorization rules for relationship-rich data models?

Yes, Convex supports collocation of authorization rules for relationship-rich domains. This allows you to define consistent access control and default values directly alongside your document edges and relational queries.

How do I set up Convex Ents to begin querying related documents?

To set up Convex Ents, integrate the library into your Convex project and apply its patterns to your schema. You can then immediately begin querying related documents with ergonomic, type-safe defaults and access rules.

When should I use ergonomic query patterns for Convex relationships and edges?

You should use ergonomic query patterns for Convex relationships when working in relationship-rich domains. They are essential when consistent defaults, predictable database interactions, and collocated authorization rules are required for data modeling.