Back to Graphql Ruby

Guides

guides/guides.html

2.6.21.5 KB
Original Source

--- title: Guides Index sections: - name: Schema - name: Queries - name: Execution - name: Type Definitions - name: Authorization - name: Fields - name: Mutations - name: Errors - name: Pagination - name: Relay - name: Dataloader - name: Subscriptions - name: GraphQL Pro - name: GraphQL Pro - OperationStore - name: GraphQL Pro - Defer - name: GraphQL Enterprise - Rate Limiters - name: GraphQL Enterprise - Object Cache - name: GraphQL Enterprise - Changesets - name: JavaScript Client - name: Language Tools - name: Testing - name: Other ---

Guides

{% for section in page.sections %} - {{ section.name }} {% endfor %}

{% assign sorted_pages = site.pages | sort: "index" %} {% assign pages_with_index = ''|split:'' %} {% assign pages_without_index = ''|split:'' %} {% for guide in sorted_pages %} {% if guide.layout == "guide" %} {% if guide.index %} {% assign pages_with_index = pages_with_index | push: guide %} {% else %} {% assign pages_without_index = pages_without_index | push: guide %} {% endif %} {% endif %} {% endfor %} {% assign sorted_guides = pages_with_index | concat: pages_without_index %} {% for section in page.sections %}

{{ section.name }}

{% for guide in sorted_guides %} {% if guide.section == section.name %} - {{ guide.title }} {{ guide.desc }}

{% endif %} {% endfor %}

{% endfor %}