-
Notifications
You must be signed in to change notification settings - Fork 67
Add identifier syntax #296
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: persisted-documents
Are you sure you want to change the base?
Changes from 3 commits
e357f4c
daa0bec
81fa529
bba578d
3fbc34c
5d48e0e
014506d
eeab3f3
dda338e
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -95,6 +95,35 @@ implementation specific. | |
Note: A 32 character hexadecimal _custom document identifier_ is likely to be an | ||
MD5 hash of the GraphQL document, as traditionally used by Relay. | ||
|
||
### Document identifier syntax | ||
|
||
DocumentIdentifier :: | ||
|
||
- PrefixedDocumentIdentifier | ||
- CustomDocumentIdentifier | ||
|
||
PrefixedDocumentIdentifier :: | ||
|
||
- Sha256HexDocumentIdentifier | ||
- OtherPrefixedDocumentIdentifier | ||
|
||
Sha256HexDocumentIdentifier : `sha256:` Sha256Checksum | ||
|
||
Sha256Checksum :: 64 LowerCaseHexDigit | ||
martinbonnin marked this conversation as resolved.
Outdated
Show resolved
Hide resolved
|
||
|
||
LowerCaseHexDigit :: one of | ||
|
||
- `0` `1` `2` `3` `4` `5` `6` `7` `8` `9` | ||
- `a` `b` `c` `d` `e` `f` | ||
|
||
OtherPrefixedDocumentIdentifier :: `x-` IdentifierCharacter+ `:` IdentifierCharacter+ | ||
|
||
CustomDocumentIdentifier :: SourceCharacter+ | ||
|
||
IdentifierCharacter :: SourceCharacter but not `:` | ||
|
||
SourceCharacter :: Any Unicode scalar value | ||
|
||
|
||
## Persisting a Document | ||
|
||
To utilize persisted documents for a request, the client must possess a unique | ||
|
Uh oh!
There was an error while loading. Please reload this page.