mercurius-js / cache

Adds an in-process caching layer to Mercurius. Federation is fully supported.
MIT License
106 stars 19 forks source link

Allow skip rules for specific policy #25

Closed codeflyer closed 2 years ago

codeflyer commented 2 years ago

Some policies can have a different rule to define the skip action.

Add an option at policy level to define the skip.

  skip: () => { ...globalSkiprule}
  policy: {
    Query: {
      welcome: {
        skip: () => { ...skipRules}
      }
    }
  }
simone-sanfratello commented 2 years ago

released on v0.8.0