graphql-let icon indicating copy to clipboard operation
graphql-let copied to clipboard

No types getting generated

Open hendrik244 opened this issue 6 months ago • 0 comments

I'm currently trying to generate typesscript types via CLI, but no type files a getting created.

My queries are stored in .ts files and look like this for example:

image

My .graphql-let.yml looks like this:

schema:
  - https://XXXXXX-dev.myshopify.com/api/2023-01/graphql.json:
      headers:
        X-Shopify-Storefront-Access-Token: XXXXXXXXXXXXX
documents:
  - 'src/lib/shopify/queries/*.ts*'
  - 'src/lib/shopify/mutations/*.ts*'
plugins:
  - typescript-operations
cacheDir: .cache/graphql-let

The cache file "types.tsx" is getting created.

Following packages are installed:

"graphql-let": "^0.18.6", "graphql": "^16.8.1", "@graphql-codegen/cli": "5.0.0", "@graphql-codegen/typescript": "^4.0.1", "@graphql-codegen/typescript-operations":

What am I doing wrong? Thanks in advance

hendrik244 avatar Jan 10 '24 20:01 hendrik244