Autocomplete suggestions for .gql file paths inside typescript files in VSCode

Viewed 183

We are enabling loading graphql files in a Client Side Next.js App. We are using graphql tag loader:

  webpack: (config) => {
    config.module.rules.push({
      test: /\.(graphql|gql)$/,
      exclude: /node_modules/,
      loader: 'graphql-tag/loader',
    })

    return config
  },

It works just great. It gives back all the available countries. But the issue we have is that when you try to find a graphql file, it does not show you autocomplete suggestions while you are typing in VSCode even tho we have queries/getCountries.gql:

enter image description here

0 Answers
Related