自定义 GraphQL API 参考布局

使用 docs.yml 布局中的 operation 关键字控制 GraphQL 操作在侧边栏中的显示方式。可以排序操作、设置自定义标题和 slug、隐藏操作,并将它们分组到不同的部分。

docs.yml
1navigation:
2 - api: GraphQL API Reference
3 layout:
4 - section: Plants
5 contents:
6 - operation: QUERY getPlant
7 title: Get plant details
8 - operation: MUTATION createPlant
阅读文档