summaryrefslogtreecommitdiff
path: root/lib/gitlab/graphql/docs/templates/default.md.haml
blob: cc22d43ab4f844549912d6a398fb1d8379cf1ba0 (plain)
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
-# haml-lint:disable UnnecessaryStringOutput

= auto_generated_comment

:plain
  # GraphQL API Resources

  This documentation is self-generated based on GitLab current GraphQL schema.

  The API can be explored interactively using the [GraphiQL IDE](../index.md#graphiql).

  ## Objects
\
- objects.each do |type|
  - unless type[:fields].empty?
    = "### #{type[:name]}"
    \
    ~ "| Name  | Type  | Description |"
    ~ "| ---   |  ---- | ----------  |"
    - type[:fields].each do |field|
      = "| `#{field[:name]}` | #{render_field_type(field[:type][:info])} | #{field[:description]} |"
    \