Skip to content

Instantly share code, notes, and snippets.

@arun12209
Created January 13, 2023 12:58
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/ef9730260f2d7d142f5c0b04465dab10 to your computer and use it in GitHub Desktop.
Save arun12209/ef9730260f2d7d142f5c0b04465dab10 to your computer and use it in GitHub Desktop.
import { LightningElement, wire } from 'lwc';
import { gql, graphql } from 'lightning/uiGraphQLApi';
export default class ExampleGQL extends LightningElement {
@wire(graphql, {
query: gql`
query AccountInfo {
uiapi {
query {
Account(where: { Name: { like: "United%" } }) @category(name: "recordQuery") {
edges {
node {
Name @category(name: "StringValue") {
value
displayValue
}
}
}
}
}
}
}`
})
propertyOrFunction
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment