-
-
Save arun12209/ef9730260f2d7d142f5c0b04465dab10 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 { 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