What problem does it solve?
This Skill streamlines the process of extending Vendure's GraphQL API by providing clear patterns and best practices for defining custom types, queries, mutations, and resolvers, ensuring proper integration with Vendure's core features like RequestContext and permissions.
Core Features & Use Cases
- Schema Definition: Guides the creation of both Admin and Shop API GraphQL schemas using
gql template literals.
- Resolver Implementation: Demonstrates how to write resolvers for Admin and Shop APIs, correctly handling
RequestContext, permissions (@Allow), and input types.
- Plugin Integration: Shows how to register custom schemas and resolvers within a Vendure plugin.
- Use Case: When adding new features to your Vendure store that require custom data fetching or manipulation via GraphQL, such as adding a new product attribute or a custom order processing mutation.
Quick Start
Use the vendure-graphql-writing skill to create a new GraphQL query for fetching custom product data in the Vendure Shop API.