What problem does it solve?
This Skill standardizes Laravel Lighthouse GraphQL backend conventions for schema, directives, resolvers, and schema sync in backend/. Use when editing backend GraphQL schema or resolver classes.
Core Features & Use Cases
- Schema organization: Clear guidance for structuring backend/graphql folders, including schema.graphql, types, and resolvers.
- Directive usage: Standardizes common GraphQL directives (e.g. @globalId, @rename, @guard, @auth) to ensure consistency.
- Resolver guidelines: Guidance on placing resolvers in App\GraphQL\Queries and App\GraphQL\Mutations, with invokable classes and naming conventions.
- Schema Sync workflow: After changes, run the documented commands to dump the GraphQL schema to the frontend and refresh the client.
Quick Start
Apply the conventions to your backend GraphQL files under backend/graphql and App\GraphQL\Resolvers. After edits, run the schema dump to update the frontend as described in the guidelines.