-
-
Save arun12209/cd8147006ac8b46c0be8a5bdf14d3006 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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