在GraphQL模式文档注释中,如何链接到类型?

在GraphQL模式文档注释中,如何链接到类型?,graphql,markdown,documentation,Graphql,Markdown,Documentation,GraphQL模式中的注释处于标记状态,因此可以在其中放置链接。我希望在注释中有一个指向另一种类型的链接,这样文档的读者就可以从一种类型浏览到另一种类型 例如,我试过这样做: """ A written or printed work consisting of pages glued or sewn together along one side and bound in covers. A book has an [Author](Author). """ type Book { i

GraphQL模式中的注释处于标记状态,因此可以在其中放置链接。我希望在注释中有一个指向另一种类型的链接,这样文档的读者就可以从一种类型浏览到另一种类型

例如,我试过这样做:

"""
A written or printed work consisting of pages glued or sewn together along one side and bound in covers.
A book has an [Author](Author).
"""
type Book {
    id: ID
    name: String
    author: Author
}
在GraphiQL中,这被正确地转换为链接,但目标是错误的


恐怕这不太可能,但我想我还是会问的!:)

如果静态生成文档,可能会包含在该上下文中工作的相对链接。但是,GraphiQL目前不支持对特定类型的深度链接,因此无法实现这一点