UNPKG

@projectcaluma/ember-analytics

Version:
20 lines (18 loc) 520 B
import getAnalyticsTableQuery from "@projectcaluma/ember-analytics/gql/queries/get-analytics-table.graphql"; export default async function getAnalyticsTable(slug) { try { return await this.apollo.watchQuery( { query: getAnalyticsTableQuery, fetchPolicy: "cache-and-network", variables: { slug }, }, "analyticsTable", ); } catch (error) { console.error(error); this.notification.danger( this.intl.t("caluma.notification.table-not-found"), ); } }