Sha256: e088d4b782c970a7a5b2eb0b480792eb9cde7125090ecb8c10640d1f8bd098d5
Contents?: true
Size: 1.75 KB
Versions: 2
Compression:
Stored size: 1.75 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="./<%= @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
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
graphql-docs-0.1.1 | lib/graphql-docs/layouts/includes/fields.html |
graphql-docs-0.1.0 | lib/graphql-docs/layouts/includes/fields.html |