Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gitlab-ce
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
1
Merge Requests
1
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
gitlab-ce
Commits
f3f4904f
Commit
f3f4904f
authored
Nov 02, 2020
by
lauraMon
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Updates template to include connnection fields
* Generates docs with connection fields
parent
40348efe
Changes
2
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
154 additions
and
2 deletions
+154
-2
doc/api/graphql/reference/index.md
doc/api/graphql/reference/index.md
+151
-0
lib/gitlab/graphql/docs/templates/default.md.haml
lib/gitlab/graphql/docs/templates/default.md.haml
+3
-2
No files found.
doc/api/graphql/reference/index.md
View file @
f3f4904f
This diff is collapsed.
Click to expand it.
lib/gitlab/graphql/docs/templates/default.md.haml
View file @
f3f4904f
...
@@ -30,11 +30,12 @@
...
@@ -30,11 +30,12 @@
\
\
-
objects
.
each
do
|
type
|
-
objects
.
each
do
|
type
|
-
unless
type
[
:fields
].
empty?
-
all_fields
=
type
[
:fields
]
+
type
[
:connections
]
-
unless
all_fields
.
empty?
=
render_name_and_description
(
type
)
=
render_name_and_description
(
type
)
~ "| Field | Type | Description |"
~ "| Field | Type | Description |"
~ "| ----- | ---- | ----------- |"
~ "| ----- | ---- | ----------- |"
-
sorted_by_name
(
type
[
:fields
]
).
each
do
|
field
|
-
sorted_by_name
(
all_fields
).
each
do
|
field
|
=
render_field
(
field
)
=
render_field
(
field
)
\
\
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment