Adding custom GraphQL queries and mutations using GraphQLSchemaFactory. Use this skill when the developer wants to add custom GraphQL endpoints, create custom queries or mutations, add business logic to the API layer, build custom resolvers, inject backend services (identity, tenancy, CMS use-cases) into their GraphQL schema, or build dynamic GraphQL inputs from CMS models. Covers the full pattern from simple queries to complex resolvers with dependency injection and permission transformers.
$npx -y skills add webiny/webiny-js --skill graphql-apiInstalls into the current project.
Run `npx skills use "https://github.com/webiny/webiny-js" --skill "webiny/webiny-js/graphql-api"` and follow the generated skill instructions now. Read its complete output, redirecting it to a temporary file first if necessary. Resolve relative paths from the supporting-files directory it provides.
Use the skills in "https://github.com/webiny/webiny-js" that are relevant to the current task. Run `npx skills add "https://github.com/webiny/webiny-js"` and select the relevant skills, then follow their instructions.