Skip to content

Commit

Permalink
docs: fix entity cache mermaid diagram (#6568)
Browse files Browse the repository at this point in the history
  • Loading branch information
Meschreiber authored Jan 17, 2025
1 parent d443f5a commit 11d3780
Showing 1 changed file with 15 additions and 16 deletions.
31 changes: 15 additions & 16 deletions docs/source/routing/performance/caching/entity.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -216,16 +216,15 @@ This entry contains an object with the `all` field to affect all subgraph reques
You can invalidate entity cache entries with a [specifically formatted request](#invalidation-request-format once you [configure your router](#configuration) appropriately. For example, if price data changes before a price entity's TTL expires, you can send an invalidation request.

```mermaid
flowchart RL
subgraph QueryResponse["Cache invalidation POST"]
n1["{
  "kind": "subgraph",
  "subgraph": "price",
  "type": "Price",
  "key": {
    "id": "101"
  }
    "kind": "subgraph",
    "subgraph": "price",
    "type": "Price",
    "key": {
        "id": "101"
    }
}"]
end
Expand All @@ -236,18 +235,18 @@ flowchart RL
end
subgraph PriceQueryFragment["Price Query Fragment (e.g. TTL 2200)"]
n2[" ̶{̶
  " ̶p̶r̶i̶c̶e̶": ̶{̶
    " ̶i̶d̶": ̶1̶0̶1̶,
    " ̶p̶r̶o̶d̶u̶c̶t̶_̶i̶d̶": ̶1̶2̶,
    " ̶a̶m̶o̶u̶n̶t̶": ̶1̶5̶0̶0̶,
    "̶c̶u̶r̶r̶e̶n̶c̶y̶_̶c̶o̶d̶e̶": " ̶U̶S̶D̶"
   ̶}̶
̶}̶"]
n2["<del>{
&nbsp;&nbsp;&nbsp;&nbsp;&quot;price&quot;: {
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&quot;id&quot;: 101,
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&quot;product_id&quot;: 12,
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&quot;amount&quot;: 1500,
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&quot;currency_code&quot;: &quot;USD&quot;
&nbsp;&nbsp;&nbsp;&nbsp;}
}</del>"]
end
Router
Database[("&emsp;&emsp;&emsp;")]
Database[("&nbsp;&nbsp;&nbsp;&nbsp;")]
QueryResponse --> Router
Purchases --> Router
Expand Down

0 comments on commit 11d3780

Please sign in to comment.