Sha256: 8fd417f41afcce07a3cdb4bbed5e58d0e3fa53f648ea2c6b78586baade379f8d
Contents?: true
Size: 1.76 KB
Versions: 3
Compression:
Stored size: 1.76 KB
Contents
<% fields.each do |field| %> <% next if field['type']['ofType'] && field['type']['ofType']['name'] && field['type']['ofType']['name'].end_with?('Connection') %> <div class="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'] %> (<code><a href="<%= base_url %>/<%= @type_path.downcase %>/<%= slugify.(@type_name) %>"><%= @type_name %></a></code>)</span> <div class="description-wrapper"> <% if field['isDeprecated'] %> <div class="deprecation-notice"> <span class="deprecation-title">Deprecation notice</span> <%= markdown.(field['deprecationReason']) %> </div> <% end %> <%= markdown.(field['description']) %> <% unless field['args'].blank? %> <%= include.('arguments.html', args: field['args']) %> <% end %> </div> </div> <% end %>
Version data entries
3 entries across 3 versions & 1 rubygems