Apollo-client query not working on server, only on browser

I’m building an isomorphic meteor app and I’m really struggling trying to get apollo-client to work while doing server side rendering, currently my client is like this:

 client = new ApolloClient({
    ssrMode: Meteor.isServer
});

I can’t use react-apollo because the meteor-react-router-ssr freaks out on the server, so I have to use a simple query like this:

client.query({query: allPosts}).then(function (result) {
    console.log(result);
}).catch(function(e) {
    console.log(e);
});

This works on the browser, but on the server this query is not executed, get an error “ReferenceError: fetch is not defined]”. Any help appreciate it.