title: Graphql codegen configuration does not load documents with Glob Expression
body: <p>My API is written with TypeScript/Apollo and I am able to run queries/mutations on http://localhost:4000/graphql.
  My front-end is with Next.js and Apollo client. I use GraphQL Codegenerator to generate the client-side code I need.</p>
  <p>I am using:</p>
  <pre><code>&quot;@graphql-codegen/cli&quot;: &quot;1.20.1&quot;,
  &quot;@graphql-codegen/typescript&quot;: &quot;1.20.2&quot;,
  &quot;@graphql-codegen/typescript-operations&quot;: &quot;1.17.14&quot;,
  &quot;@graphql-codegen/typescript-react-apollo&quot;: &quot;2.2.1&quot;,
  </code></pre>
  <p>and my <code>codegen.yml</code> file is</p>
  <pre><code>overwrite: true
  schema: &quot;http://localhost:4000/graphql&quot;
  documents: &quot;src/graphql/**/*.graphql&quot;
  generates:
    src/generated/graphql.tsx:
      plugins:
        - &quot;typescript&quot;
        - &quot;typescript-operations&quot;
        - &quot;typescript-react-apollo&quot;
  </code></pre>
  <p>The script I run when I change my API resolvers is <code>&quot;gen&quot;: &quot;graphql-codegen --config codegen.yml&quot;</code></p>
  <p>If I do run this code, I get the error:</p>
  <pre><code>  ✖ src/generated/graphql.tsx
      Error: 
            Unable to find any GraphQL type definitions for the following pointers:
          
                - src/graphql/**/*.graphql
  </code></pre>
  <p>but If set my <code>codegen.yml</code> file as follows it works (and I tested a query in one of the component, I can access data):</p>
  <pre><code>overwrite: true
  schema: &quot;http://localhost:4000/graphql&quot;
  documents:
    - &quot;src/graphql/fragments/RecipeSnippet.graphql&quot;
    - &quot;src/graphql/fragments/RegularError.graphql&quot;
    - &quot;src/graphql/fragments/RegularUser.graphql&quot;
    - &quot;src/graphql/fragments/RegularUserResponse.graphql&quot;
    - &quot;src/graphql/mutations/createRecipe.graphql&quot;
    - &quot;src/graphql/mutations/deleteRecipe.graphql&quot;
    - &quot;src/graphql/mutations/login.graphql&quot;
    - &quot;src/graphql/mutations/logout.graphql&quot;
    - &quot;src/graphql/mutations/register.graphql&quot;
    - &quot;src/graphql/mutations/updateRecipe.graphql&quot;
    - &quot;src/graphql/queries/me.graphql&quot;
    - &quot;src/graphql/queries/recipe.graphql&quot;
    - &quot;src/graphql/queries/recipes.graphql&quot;
  generates:
    src/generated/graphql.tsx:
      plugins:
        - &quot;typescript&quot;
        - &quot;typescript-operations&quot;
        - &quot;typescript-react-apollo&quot;
  </code></pre>
  <p>I am not sure exactly what I am doing wrong and what is even weirder is that it used to work. I remember updating my deps recently though. I saw and tried a few other answers like <a href="https://stackoverflow.com/questions/58904403/unable-to-find-any-graphql-type-definitions-for-the-following-pointers-src">this one</a> or <a href="https://stackoverflow.com/questions/60218757/graphql-codegen-not-running-with-config-file">this one</a> but to no avail :(</p>