A GraphQL server supports introspection over its schema. This schema is queried using GraphQL itself, creating a powerful platform for tool‐building... The schema introspection system is accessible from the meta‐fields __schema and __type which are accessible from the type of the root of a query operation.
根据规范:
像GraphQL游乐场和GraphiQL这样的工具利用自省来获取关于模式的信息。您不需要任何额外的工具或库来进行自省查询,因为它只是一个GraphQL查询,您将以向端点发出任何其他请求的方式发出请求(例如使用
requests
)。在以下是来自
graphql-core
的完整自省查询:相关问题 更多 >
编程相关推荐