查询 GraphQL 变更模式
Query GraphQL Mutation Schema
有没有办法使用 HTTP 查询 graphql 服务器的变更模式?或者查询 graphql 服务器的整个模式的方法?谢谢!
当然是。官方 GraphQL 规范概述 the introspection specifics。获取可用突变的示例可能如下所示...
{
__schema {
mutationType {
fields {
name
}
}
}
}
有没有办法使用 HTTP 查询 graphql 服务器的变更模式?或者查询 graphql 服务器的整个模式的方法?谢谢!
当然是。官方 GraphQL 规范概述 the introspection specifics。获取可用突变的示例可能如下所示...
{
__schema {
mutationType {
fields {
name
}
}
}
}