Skip to content

Commit

Permalink
docs: fix documentation for @typePolicy directive (#594)
Browse files Browse the repository at this point in the history
  • Loading branch information
x-sheep authored Jan 28, 2025
1 parent 480bbf0 commit 6b5fa32
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions docs/source/client-directives.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -31,8 +31,8 @@ See the documentation on [defining local cache mutations](./caching/cache-transa

### `@typePolicy(keyFields: String!)`

`directive @typePolicy(module: String!) repeatable on OBJECT | INTERFACE`
`directive @typePolicy(keyFields: String!) on OBJECT | INTERFACE`

Adds a type policy to a type that can be used to resolve cache keys for objects of that type.

This directive can be used to configure how the normalized cache operates. See the documentation on [custom cache keys](./caching/cache-key-resolution) for more information.
This directive can be used to configure how the normalized cache operates. See the documentation on [custom cache keys](./caching/cache-key-resolution) for more information.

0 comments on commit 6b5fa32

Please sign in to comment.