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

Поделиться
HTML-код
  • Опубликовано: 18 сен 2024
  • 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 : / iamkapilbatra
    My journey : www.salesforce...
    Blog / Code Snippet : www.salesforce...
    Website : www.salesforce...​​
    LinkedIn : / salesforcebolt
    Twitter : / salesforcebolt​​
    Facebook : / iamsalesforcebolt

Комментарии • 6

  • @romanregmi1332
    @romanregmi1332 8 месяцев назад +1

    We need more GraphQL related videos.

  • @giovanniyunior
    @giovanniyunior 8 месяцев назад +1

    I tried to refresh using an Aggregate Function but it is not working.

    • @SalesforceBolt
      @SalesforceBolt  7 месяцев назад

      It should use same methods, are you getting any errors?

  • @OaishKukreja
    @OaishKukreja 2 месяца назад +1

    Hi I need some urgent help on this graphQL refresh. So has anyone tried to use it when a record is deleted as well?