On this page

File Cache

GraphQL Mesh v0 documentation (superseded by v1): Use the file system as storage with GraphQL Mesh's file caching strategy. Install `@graphql-mesh/cache-file` and configure your `.meshrc.yaml` with the desired file path.

This caching strategy will use the file system as the storage.

To get started with this caching strategy, install it:

npm i @graphql-mesh/cache-file

How to use?

.meshrc.yaml
cache:
  file:
    path: ./my-cache.json # the extension should be .json

Config API Reference

  • path (type: String)