【发布时间】:2020-11-16 07:03:40
【问题描述】:
谁能帮助我如何使用 spqr-spring-boot-starter 获取架构文件?
我在网上寻找解决方案,发现:How to get the generated scheme file .graphqls using SPQR?
new SchemaPrinter(
// Tweak the options accordingly
SchemaPrinter.Options.defaultOptions()
.includeScalarTypes(true)
.includeExtendedScalarTypes(true)
.includeIntrospectionTypes(true)
.includeSchemaDefintion(true)
).print(schema);
但我不确定我应该为模式传递什么?由于我使用的是 spqr-spring-boot-starter,因此我没有编写任何与 GraphQLSchema 实例相关的内容。
我需要架构文件来启用 Postman 中的自动完成功能。如果您对此有所了解,请提供帮助,这将非常有帮助。谢谢!
【问题讨论】:
标签: java graphql graphql-spqr graphql-spqr-spring-boot-starter