Skip to content

Instantly share code, notes, and snippets.

@arun12209
Last active January 17, 2023 17:43
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save arun12209/cd8147006ac8b46c0be8a5bdf14d3006 to your computer and use it in GitHub Desktop.
Save arun12209/cd8147006ac8b46c0be8a5bdf14d3006 to your computer and use it in GitHub Desktop.
import { LightningElement, wire } from 'lwc';
import { graphql } from 'lightning/uiGraphQLApi';
export default class MyComponent extends LightningElement {
@wire(graphql, {
query: `query getAccounts {
accounts {
id
name
industry
phone
website
}
}`
}) accounts;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment