lightning/graphql
Wire Adapter
Fetch data using the GraphQL wire adapter, which comes with client-side caching and data management capabilities.
lightning/graphql
supersedes the lightning/uiGraphQLApi
module. Here are several differences between the modules:
lightning/graphql
provides newer features, such as optional fields and dynamic query construction.lightning/graphql
enables you to trigger a refresh of the query results by calling therefresh
method on the emitted data.- The deprecated
lightning/uiGraphQLApi
enables you to trigger a refresh of the query results by calling therefreshGraphQL(result)
function.
The wire adapter in this module is built on top of Lightning Data Service (LDS).
See Also