Skip to content

Commit

Permalink
add docs.
Browse files Browse the repository at this point in the history
  • Loading branch information
gmac committed Sep 17, 2024
1 parent e0f4769 commit d20505d
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions docs/client.md
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,12 @@ client.on_cache_write do |request, payload|
end
```

All request digests use SHA2 by default. You can swap in [a faster algorithm](https://github.com/Shopify/blake3-rb) and/or add base scoping by reconfiguring the stitching library:

```ruby
GraphQL::Stitching.digest { |str| Digest::MD5.hexdigest("v2/#{str}") }
```

Note that inlined input data works against caching, so you should _avoid_ these input literals when possible:

```graphql
Expand Down

0 comments on commit d20505d

Please sign in to comment.