Could anyone please help me how to get a schema file using spqr-spring-boot-starter?
I looked for the solutions online and found this: 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);
But I'm not sure what should I pass for schema? As I'm using spqr-spring-boot-starter, I'm not writing anything related to GraphQLSchema instance.
I need the schema file to enable auto-completion in Postman. Please assist if you know anything about this, this will be really helpful. Thanks!