-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathwith-partials.graphql
60 lines (48 loc) · 1.34 KB
/
with-partials.graphql
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
schema {
query: Query
}
type Query {
"Fetch an individual document"
document(
"The UUID of the document"
uuid: ID
"The URL path that the document is exposed to on the public site"
path: String
): Document
}
partial LinkFields {
links(
rel: String
type: String
): [Link]
}
partial DocumentFields using LinkFields {
uuid: ID!
"The document type, such as x-im/article"
type: String
"If specified, then a list of the products to which this document's availability is limited"
products: [String]
"The human readable name of the document, often used publicly to identify the document"
title: String
"The specific path on the web page where this document is publicly available"
path: String
"A single metadata block"
metaBlock(
"The specific metadata block type to get"
type: String
): MetadataBlock
}
interface Document using DocumentFields {}
type AuthorDocument implements Document using DocumentFields {}
type SubjectDocument implements Document using DocumentFields {}
type ArticleDocument implements Document using DocumentFields {}
partial BlockFields using LinkFields {
uuid: ID!
document: Document
}
interface Block using BlockFields {}
type MetadataBlock implements Block using BlockFields {}
"A reference to another document"
type Link implements Block using BlockFields {
rel: String
}