MENU

Fun & Interesting

Refresh GraphQL Query Result in Lightning Web Components Salesforce ☁️⚡️

Salesforce Bolt 964 lượt xem 1 year ago
Video Not Working? Fix It Now

In this video I will show you how you can refresh the GraphQL query results in your Lightning Web Components.
The GraphQL wire adapter automatically caches your query results to improve the loading performance of subsequent queries. You can trigger a refetch of the query results and update the cache by calling the refreshGraphQL(result) function.

When calling refreshGraphQL, you must pass the exact object that was previously passed to your wire function or variable. The wire function or variable must preserve the original value from the wire adapter and can’t use a destructuring parameter assignment.

#GraphQL #lwc #salesforce

Join me on Instagram : https://www.instagram.com/iamkapilbatra/

My journey : https://www.salesforcebolt.com/p/about.html

Blog / Code Snippet : https://www.salesforcebolt.com/2023/12/refresh-graphql-query-result-in.html

Website : https://www.salesforcebolt.com​​

LinkedIn : https://www.linkedin.com/company/SalesforceBolt

Twitter : https://twitter.com/SalesforceBolt​​

Facebook : https://www.facebook.com/IAmSalesforceBolt

Comment