What problem does it solve?
Writing a correct schema.graphql for a HyperIndex indexer requires knowing Envio-specific rules that differ from The Graph and other frameworks, such as entity references without _id suffixes, @derivedFrom semantics, and array restrictions. This Skill encodes those rules so schema definitions pass codegen on the first attempt.
Core Features & Use Cases
- Entity and Scalar Reference: Covers ID requirements, naming rules, and the full scalar-to-TypeScript type mapping including BigInt, BigDecimal, Bytes, and Timestamp.
- Directive Guidance: Explains @derivedFrom reverse lookups, @index single and composite indexes, and @config precision settings with correct syntax and common pitfalls.
- Schema-to-Handler Mapping: Documents how codegen transforms entity reference fields into _id-suffixed TypeScript handler fields.
- Use Case: When adding a Swap entity linked to a Pool, use this Skill to write
pool: Pool! in the schema, set pool_id in the handler, and expose swaps: [Swap!]! @derivedFrom(field: "pool") without triggering codegen errors.
Quick Start
Ask the AI to define or review a schema.graphql for your Envio indexer, for example to add a new entity with relationships and indexes.