Here is my code in client/startup.js:
import { registerGqlTag } from 'apollo-client/gql';
Meteor.startup(() => {
registerGqlTag();
});
-- imports/app.js
const AppWithData = connect({
mapQueriesToProps() {
return {
postsData: {
query: gql`
{
posts{
title
content
}
}
`
}
};
}
})(App);
apollo-client v3.8.6