Salesforce Fact #697 | Getting related contacts using graphql

How do you pass dynamic value for the parameter in graphql query. The values need to be passed in the 'variables' parameter and the return value is accessed through a getter function.

In this example, we are getting the related contacts passing the accountId from the account record detail page.

Reference: https://developer.salesforce.com/docs/component-library/documentation/en/lwc/lwc.reference_graphql

Attached is the screenshot.



Comments

Popular posts from this blog