diff options
Diffstat (limited to 'lib/gitlab/graphql/docs/templates/default.md.haml')
-rw-r--r-- | lib/gitlab/graphql/docs/templates/default.md.haml | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/lib/gitlab/graphql/docs/templates/default.md.haml b/lib/gitlab/graphql/docs/templates/default.md.haml index 9dfb9b090a8..1df1c3a3e58 100644 --- a/lib/gitlab/graphql/docs/templates/default.md.haml +++ b/lib/gitlab/graphql/docs/templates/default.md.haml @@ -21,6 +21,24 @@ \ :plain + ## Queries + + Queries are used to get the resources, filter or query them. + + For more information, visit [Queries and Mutations](https://graphql.org/learn/queries/). +\ + +- sorted_by_name(queries).each do |query| + + = render_name_and_description(query) + - unless query[:arguments].empty? + ~ "| Name | Description | Type |" + ~ "| ----- | ---- | ----------- |" + - sorted_by_name(query[:arguments]).each do |argument| + = render_argument(argument) + \ + +:plain ## Object types Object types represent the resources that the GitLab GraphQL API can return. |