Sha256: 8bb88396f7a1b9697609f22ba50fdab621535154fe52db69943a23aff9002e95

Contents?: true

Size: 730 Bytes

Versions: 6

Compression:

Stored size: 730 Bytes

Contents

<table class="arguments" markdown="1">
  <thead>
    <tr>
      <th>Argument</th>
      <th>Type</th>
      <th>Description</th>
    </tr>
  </thead>
  <tbody>
  <% args.each do |argument| %>
  <tr>
    <td><code><%= argument['name'] %><code></td>
    <td>

      <% if argument['type']['name'] == "Non-Null" %>
        <% @arg_path = argument['type']['ofType']['kind'] %>
        <% @arg_name = argument['type']['ofType']['name'] %>
      <% else %>
        <% @arg_path = argument['type']['kind'] %>
        <% @arg_name = argument['type']['name'] %>
      <% end %>

      <code><%= @arg_name %></code>
    </td>
    <td>
      <p><%= markdown.(argument['description']) %></p>
    </td>
  </tr>
  <% end %>
  </tbody>
</table>

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
graphql-docs-0.3.0 lib/graphql-docs/layouts/includes/arguments.html
graphql-docs-0.2.2 lib/graphql-docs/layouts/includes/arguments.html
graphql-docs-0.2.1 lib/graphql-docs/layouts/includes/arguments.html
graphql-docs-0.2.0 lib/graphql-docs/layouts/includes/arguments.html
graphql-docs-0.1.1 lib/graphql-docs/layouts/includes/arguments.html
graphql-docs-0.1.0 lib/graphql-docs/layouts/includes/arguments.html