Skip to content

Commit 7a2b3dc

Browse files
Autofix
1 parent b8c62dc commit 7a2b3dc

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

docs/executing-queries.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -243,12 +243,14 @@ $result = GraphQL::executeQuery(
243243
### Key Generation Tips
244244

245245
You are responsible for generating cache keys that are unique and dependent on the following inputs:
246+
246247
- the client-given query
247248
- the current schema
248249
- the passed validation rules and their implementation
249250
- the implementation of `graphql-php`
250251

251252
Here are some tips:
253+
252254
- Using `serialize()` directly on the schema object may error due to closures or circular references.
253255
Instead, use `GraphQL\Utils\SchemaPrinter::doPrint($schema)` to get a stable string representation of the schema.
254256
- If using custom validation rules, be sure to account for them in your key (e.g., by serializing or listing their class names and versioning them).

0 commit comments

Comments
 (0)