mirror of
https://github.com/vale981/Vulcan
synced 2025-03-10 04:26:41 -04:00
13 lines
401 B
JavaScript
13 lines
401 B
JavaScript
![]() |
import { addTrackFunction } from 'meteor/vulcan:events';
|
||
|
import { ApolloClient } from 'apollo-client';
|
||
|
import { getRenderContext } from 'meteor/vulcan:lib';
|
||
|
import gql from 'graphql-tag';
|
||
|
|
||
|
function trackInternal() {
|
||
|
const { apolloClient, store } = getRenderContext();
|
||
|
console.log(apolloClient)
|
||
|
apolloClient.query({ query: gql`{ hello }` }).then(console.log);
|
||
|
}
|
||
|
|
||
|
addTrackFunction(trackInternal);
|