Mirror: The highly customizable and versatile GraphQL client with which you add on features like normalized caching as you grow.
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

chore: Add changeset for #3306

+13
+13
.changeset/odd-taxis-tease.md
··· 1 + --- 2 + '@urql/exchange-graphcache': minor 3 + --- 4 + 5 + Implement **local directives**. It’s now possible to add client-only directives to queries by adding them to the `cacheExchange`’s new `directives` option. 6 + Directives accept an object of their arguments and return a resolver. When a field is annotated with 7 + a resolver, e.g. `@_optional` or `@_required`, their resolvers from the `directives` config are 8 + executed. This means it’s now possible to use `@_relayPagination` for example, by passing adding 9 + the `relayPagination` helper to the config. 10 + Due to the change in [#3317](https://github.com/urql-graphql/urql/pull/3317), any directive in 11 + queries that’s prefixed with an underscore (`_`) is only visible to Graphcache and not the API. 12 + 13 + See: https://github.com/urql-graphql/urql/pull/3306