Warning: file_get_contents(/data/phpspider/zhask/data//catemap/5/reporting-services/3.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Java 如何使用spqr spring boot starter在graphql中获取模式文件?_Java_Graphql_Graphql Spqr_Graphql Spqr Spring Boot Starter - Fatal编程技术网

Java 如何使用spqr spring boot starter在graphql中获取模式文件?

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

有谁能帮助我如何使用spqr spring boot starter获取模式文件吗

我在网上查找解决方案,发现如下:

但我不确定我应该把什么作为模式?在使用spqr spring boot starter时,我没有编写任何与GraphQLSchema实例相关的内容

我需要模式文件来启用Postman中的自动完成。如果您对此有所了解,请提供帮助,这将非常有帮助。谢谢

new SchemaPrinter(
                  // Tweak the options accordingly
                  SchemaPrinter.Options.defaultOptions()
                          .includeScalarTypes(true)
                          .includeExtendedScalarTypes(true)
                          .includeIntrospectionTypes(true)
                          .includeSchemaDefintion(true)
            ).print(schema);