mirror of
https://github.com/hasura/graphql-engine.git
synced 2024-12-24 16:03:37 +03:00
34 lines
816 B
YAML
34 lines
816 B
YAML
|
- description: call the simple endpoint to write to the cache
|
||
|
url: /v1/graphql
|
||
|
status: 200
|
||
|
query:
|
||
|
query: |
|
||
|
query @cached(ttl: 300) {
|
||
|
test_table {
|
||
|
first_name
|
||
|
last_name
|
||
|
}
|
||
|
}
|
||
|
resp_headers:
|
||
|
Cache-Control: max-age=300
|
||
|
X-Hasura-Query-Cache-Key: 29c20d58ac50d0934e6708b4752ca5b122c09e3a
|
||
|
X-Hasura-Query-Family-Cache-Key: 05e354afeca0828bbe6c1e77c25e4ae948f45f80
|
||
|
response:
|
||
|
data:
|
||
|
test_table:
|
||
|
- first_name: Foo
|
||
|
last_name: Bar
|
||
|
- first_name: Baz
|
||
|
last_name: Qux
|
||
|
- first_name: X%20Y
|
||
|
last_name: Test
|
||
|
- description: call the metrics endpoint
|
||
|
url: /pro/cache/metrics
|
||
|
method: GET
|
||
|
status: 200
|
||
|
query:
|
||
|
response:
|
||
|
05e354afeca0828bbe6c1e77c25e4ae948f45f80:
|
||
|
misses: 1
|
||
|
hits: null
|