You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: src/article-api/templates/graphql-reference.template.md
+22-28Lines changed: 22 additions & 28 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -4,6 +4,14 @@
4
4
5
5
{{ manualContent }}
6
6
7
+
{% if connectionEdgeSummary %}
8
+
## Connection and Edge types
9
+
10
+
Connection types with only the standard pagination fields (`edges`, `nodes`, `pageInfo`, `totalCount`) and Edge types with only `cursor` and `node` are summarized here. Connection and Edge types with additional fields are documented individually below.
11
+
12
+
{% for name in connectionEdgeSummary %}`{{ name }}`{% unless forloop.last %}, {% endunless %}{% endfor %}
13
+
14
+
{% endif %}
7
15
{% for item in items %}
8
16
9
17
## {{ item.name }}
@@ -17,15 +25,13 @@
17
25
{% endif %}
18
26
19
27
{% if pageType == 'queries' %}
20
-
**Type:**[{{ item.type }}]({{ item.href }})
28
+
**Type:** {{ item.type }}
21
29
22
30
{% if item.args.size > 0 %}
23
31
24
32
### Arguments for `{{ item.name }}`
25
33
26
-
| Name | Type | Description |
27
-
| --- | --- | --- |
28
-
{% for arg in item.args %}| `{{ arg.name }}` | [`{{ arg.type }}`]({{ arg.href }}) | {{ arg.description }} |
34
+
{% for arg in item.args %}*`{{ arg.name }}` ({{ arg.type }}): {{ arg.description }}
29
35
{% endfor %}
30
36
{% endif %}
31
37
@@ -34,38 +40,31 @@
34
40
35
41
### Input fields for `{{ item.name }}`
36
42
37
-
| Name | Type | Description |
38
-
| --- | --- | --- |
39
-
{% for field in item.inputFields %}| `{{ field.name }}` | [`{{ field.type }}`]({{ field.href }}) | {{ field.description }}{% if field.defaultValue %} Default: `{{ field.defaultValue }}`.{% endif %} |
43
+
{% for field in item.inputFields %}*`{{ field.name }}` ({{ field.type }}): {{ field.description }}{% if field.defaultValue %} Default: `{{ field.defaultValue }}`.{% endif %}
40
44
{% endfor %}
41
45
{% endif %}
42
46
43
47
{% if item.returnFields.size > 0 %}
44
48
45
49
### Return fields for `{{ item.name }}`
46
50
47
-
| Name | Type | Description |
48
-
| --- | --- | --- |
49
-
{% for field in item.returnFields %}| `{{ field.name }}` | [`{{ field.type }}`]({{ field.href }}) | {{ field.description }}{% if field.defaultValue %} Default: `{{ field.defaultValue }}`.{% endif %}{% if field.isDeprecated %} **Deprecated:** {{ field.deprecationReason }}{% endif %} |
51
+
{% for field in item.returnFields %}*`{{ field.name }}` ({{ field.type }}): {{ field.description }}{% if field.defaultValue %} Default: `{{ field.defaultValue }}`.{% endif %}{% if field.isDeprecated %} **Deprecated:** {{ field.deprecationReason }}{% endif %}
50
52
{% endfor %}
51
53
{% endif %}
52
54
53
55
{% elsif pageType == 'objects' %}
54
56
{% if item.implements.size > 0 %}
57
+
**Implements:** {% for impl in item.implements %}{{ impl.name }}{% unless forloop.last %}, {% endunless %}{% endfor %}
55
58
56
-
### Implements
57
-
58
-
{% for impl in item.implements %}- [`{{ impl.name }}`]({{ impl.href }})
59
-
{% endfor %}
60
59
{% endif %}
61
60
62
61
{% if item.fields.size > 0 %}
63
62
64
63
### Fields for `{{ item.name }}`
65
64
66
-
| Name | Type | Description |
67
-
| --- | --- | --- |
68
-
{% for field in item.fields %}| `{{ field.name }}` | [`{{ field.type }}`]({{ field.href }}) | {{ field.description }}{% if field.defaultValue %} Default: `{{ field.defaultValue }}`.{% endif %}{% if field.isDeprecated %} **Deprecated:** {{ field.deprecationReason }}{% endif %}{% if field.arguments.size > 0 %}<br><br>**Arguments:**<br>{% for arg in field.arguments %}- `{{ arg.name }}` ([`{{ arg.type.name }}`]({{ arg.type.href }})): {{ arg.description }}{% if arg.defaultValue %} Default: `{{ arg.defaultValue }}`.{% endif %}<br>{% endfor %}{% endif %} |
65
+
{% for field in item.fields %}*`{{ field.name }}` ({{ field.type }}): {{ field.description }}{% if field.defaultValue %} Default: `{{ field.defaultValue }}`.{% endif %}{% if field.isDeprecated %} **Deprecated:** {{ field.deprecationReason }}{% endif %}{% if field.arguments.size > 0 %}
66
+
{% for arg in field.arguments %} * `{{ arg.name }}` ({{ arg.type.name }}): {{ arg.description }}{% if arg.defaultValue %} Default: `{{ arg.defaultValue }}`.{% endif %}
67
+
{% endfor %}{% endif %}
69
68
{% endfor %}
70
69
{% endif %}
71
70
@@ -74,9 +73,9 @@
74
73
75
74
### Fields for `{{ item.name }}`
76
75
77
-
| Name | Type | Description |
78
-
| --- | --- | --- |
79
-
{% for field in item.fields %}| `{{ field.name }}` | [`{{ field.type }}`]({{ field.href }}) | {{ field.description }}{% if field.defaultValue %} Default: `{{ field.defaultValue }}`.{% endif %}{% if field.isDeprecated %} **Deprecated:** {{ field.deprecationReason }}{% endif %}{% if field.arguments.size > 0 %}<br><br>**Arguments:**<br>{% for arg in field.arguments %}- `{{ arg.name }}` ([`{{ arg.type.name }}`]({{ arg.type.href }})): {{ arg.description }}{% if arg.defaultValue %} Default: `{{ arg.defaultValue }}`.{% endif %}<br>{% endfor %}{% endif %} |
76
+
{% for field in item.fields %}*`{{ field.name }}` ({{ field.type }}): {{ field.description }}{% if field.defaultValue %} Default: `{{ field.defaultValue }}`.{% endif %}{% if field.isDeprecated %} **Deprecated:** {{ field.deprecationReason }}{% endif %}{% if field.arguments.size > 0 %}
77
+
{% for arg in field.arguments %} * `{{ arg.name }}` ({{ arg.type.name }}): {{ arg.description }}{% if arg.defaultValue %} Default: `{{ arg.defaultValue }}`.{% endif %}
78
+
{% endfor %}{% endif %}
80
79
{% endfor %}
81
80
{% endif %}
82
81
@@ -85,10 +84,7 @@
85
84
86
85
### Values for `{{ item.name }}`
87
86
88
-
{% for value in item.values %}**`{{ value.name }}`**
89
-
90
-
{{ value.description }}
91
-
87
+
{% for value in item.values %}*`{{ value.name }}`: {{ value.description }}
92
88
{% endfor %}
93
89
{% endif %}
94
90
@@ -97,7 +93,7 @@
97
93
98
94
### Possible types for `{{ item.name }}`
99
95
100
-
{% for type in item.possibleTypes %}- [`{{ type.name }}`]({{ type.href }})
96
+
{% for type in item.possibleTypes %}*{{ type.name }}
101
97
{% endfor %}
102
98
{% endif %}
103
99
@@ -106,9 +102,7 @@
106
102
107
103
### Input fields for `{{ item.name }}`
108
104
109
-
| Name | Type | Description |
110
-
| --- | --- | --- |
111
-
{% for field in item.inputFields %}| `{{ field.name }}` | [`{{ field.type }}`]({{ field.href }}) | {{ field.description }}{% if field.defaultValue %} Default: `{{ field.defaultValue }}`.{% endif %}{% if field.isDeprecated %} **Deprecated:** {{ field.deprecationReason }}{% endif %} |
105
+
{% for field in item.inputFields %}*`{{ field.name }}` ({{ field.type }}): {{ field.description }}{% if field.defaultValue %} Default: `{{ field.defaultValue }}`.{% endif %}{% if field.isDeprecated %} **Deprecated:** {{ field.deprecationReason }}{% endif %}
0 commit comments