What problem does it solve?
Ensures that every Portal Admin GraphQL query added under portal/src/graphql/adminapi/query adheres to the existing schema, naming conventions, and pagination expectations so portal APIs stay consistent and predictable.
Core Features & Use Cases
- Schema fidelity: Read portal/src/graphql/adminapi/schema.graphql first and reference only existing fields to prevent inventing unsupported schema entries.
- Query creation: Create the .graphql file in portal/src/graphql/adminapi/query, include cursor, pageInfo, and totalCount whenever pagination applies, and avoid nested entity selections unless explicitly requested.
- Generation & validation: Run cd ./portal && npm run gentype after adding or updating the query file to regenerate portal type definitions and keep client code in sync.
Quick Start
Create a new Portal Admin GraphQL query named <query name> under portal/src/graphql/adminapi/query while following the schema, include pagination metadata when required, and run npm run gentype from the portal directory.