apollo-client

Apollo dev tools not showing any data


The dev tools version is 4, same situation in Chrome as in Firefox. "@apollo/client": "^3.5.7",

const createApolloClient = (authToken) => {
  return new ApolloClient({
    link: new HttpLink({
      uri: "https://api2s.geomar.net.pl/v1/graphql",
      headers: {
        Authorization: `Bearer ${authToken}`,
      },
    }),
    cache: new InMemoryCache(),
    connectToDevTools: true, // should not be necessary but added just in case
    defaultOptions: {
      watchQuery: {
        fetchPolicy: "cache-and-network",
        pollInterval: 3000,
      },
    },
  });
};

The application is React + Vitejs, if it makes any difference... No idea where to start any debuging, please help...


Solution

  • I could not make it work so I ended up using GraphQL Network Inspector Chrome extension https://chrome.google.com/webstore/detail/graphql-network-inspector/ndlbedplllcgconngcnfmkadhokfaaln

    No alternative for Firefox...