Skip to content
Kitbay

experience-lds-graphql-generate

Apache-2.0Updated on Nov 6, 20261,156GitHub starsIncludes scripts

A Salesforce skill for building Lightning Web Components that use the Lightning Data Service GraphQL API.

What the skill teaches

A Salesforce skill for building Lightning Web Components that use the Lightning Data Service GraphQL API. The agent obtains the org's GraphQL schema through a bundled shell script that uses the sf CLI, identifies the objects and fields involved, and introspects them step by step before writing a read query or a mutation that matches the schema. It then wires the query into the component through lightning/uiGraphQLApi, including the HTML and JavaScript, and tests it against a connected org with a second script. It needs the sf CLI with an authorised org and Python 3.

Capabilities

  • Fetch an org's LDS GraphQL schema
  • Write schema-checked GraphQL read queries and mutations
  • Wire GraphQL queries into an LWC
  • Test a query against a connected org