Sha256: 2018651c813e468d4787a4c5419027077949496cd789df7e0632365b19e00cb5
Contents?: true
Size: 1.59 KB
Versions: 1
Compression:
Stored size: 1.59 KB
Contents
### Input Fields <% input_fields.each do |field| %> <% next if field['type']['ofType'] && field['type']['ofType']['name'] && field['type']['ofType']['name'].end_with?('Connection') %> <div class="field-entry <%= classes[:field_entry] %>"> <% next if field['name'] == "id" || field['name'].blank? %> <% if field['type']['ofType'] && !field['type']['ofType']['ofType'].nil? %> <% if !field['type']['ofType']['ofType']['ofType'].nil? %> <% @type_path = field['type']['ofType']['ofType']['ofType']['kind'] %> <% @type_name = field['type']['ofType']['ofType']['ofType']['name'] %> <% else %> <% @type_path = field['type']['ofType']['ofType']['kind'] %> <% @type_name = field['type']['ofType']['ofType']['name'] %> <% end %> <% elsif field['type']['ofType'].blank? %> <% @type_path = field['type']['kind'] %> <% @type_name = field['type']['name'] %> <% elsif field['type']['name'] == "Non-Null" || field['type']['ofType']['name'] == "Non-Null" %> <% @type_path = field['type']['ofType']['kind'] %> <% @type_name = field['type']['ofType']['name'] %> <% else %> <% @type_path = field['type']['ofType']['kind'] %> <% @type_name = field['type']['ofType']['name'] %> <% end %> <span class="field-name"><%= field['name'] %> (<a href="<%= base_url %>/<%= @type_path.downcase %>/<%= slugify.(@type_name) %>"><code><%= @type_name %></code></a>)</span> <div class="description-wrapper"> <%= field['description'] %> <% unless field['args'].nil? %> <%= include.('arguments.html', args: field['args']) %> <% end %> </div> </div> <% end %>
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
graphql-docs-0.3.0 | lib/graphql-docs/layouts/includes/input_fields.html |