Java 如何使用spqr spring boot starter在graphql中获取模式文件?
有谁能帮助我如何使用spqr spring boot starter获取模式文件吗 我在网上查找解决方案,发现如下: 但我不确定我应该把什么作为模式?在使用spqr spring boot starter时,我没有编写任何与GraphQLSchema实例相关的内容 我需要模式文件来启用Postman中的自动完成。如果您对此有所了解,请提供帮助,这将非常有帮助。谢谢Java 如何使用spqr spring boot starter在graphql中获取模式文件?,java,graphql,graphql-spqr,graphql-spqr-spring-boot-starter,Java,Graphql,Graphql Spqr,Graphql Spqr Spring Boot Starter,有谁能帮助我如何使用spqr spring boot starter获取模式文件吗 我在网上查找解决方案,发现如下: 但我不确定我应该把什么作为模式?在使用spqr spring boot starter时,我没有编写任何与GraphQLSchema实例相关的内容 我需要模式文件来启用Postman中的自动完成。如果您对此有所了解,请提供帮助,这将非常有帮助。谢谢 new SchemaPrinter( // Tweak the options accordin
new SchemaPrinter(
// Tweak the options accordingly
SchemaPrinter.Options.defaultOptions()
.includeScalarTypes(true)
.includeExtendedScalarTypes(true)
.includeIntrospectionTypes(true)
.includeSchemaDefintion(true)
).print(schema);