记录 GraphQL 简写模型

Documenting GraphQL short-hand model

如何使用 GraphQL shorthand 符号记录模型?

type User { name: String }

假设我要为上面的type/attribute添加描述。

描述以评论的形式出现:

# Someone who uses something
type User {
  # How we refer to the user
  name: String
}

应将这些作为描述添加到从此表示法生成的架构中。