Create an Apollo Server in a test


I am currently trying to test our Apollo 2 integration in Vulcan (

However, whenever I try to create an Apollo server in a test, I get the following error:
TypeError: utilities_1.getIntrospectionQuery is not a function

This might be related to this issue:

It happens with a minimal server too:

    test('init any server', function () {
      const apolloServer = new ApolloServer({
        typeDefs: `
      type Author {
        id: Int!

      type Query {
        author(id: Int!): Author

This only happens in test mode, not in production/dev. Can someone reproduce this issue too? What could happen? Is Meteor somehow triggering an introspection query during the test? What bother me is that I just create the server, I don’t run a query or open the browser, so even if there is an underlying issue this should not happen, except maybe if Apollo triggers a first query on server creation?

Did you find a solution?

Yes, some export was simply missing in some version of graphql. An update to the latest version fixed it. Apollo 2 update is now merged in Vulcan :slight_smile:

That’s great news! :grinning: