Closed
Description
I am in the process of converting a codebase from the old GraphQL Java Kickstart library over to spring-graphql
.
The test template in the testing framework for that library included a parameter that allowed you to optionally pass in fragment resource paths.
It would be helpful in the maintenance of test requests to support the loading of GraphQL fragments from disk. Currently, as far as I can tell fragments are only supported in the document
method, which requires you to juxtapose your fragment with your query in a single string.
Being able to write something along the following lines:
graphQlTester
.documentName("graphQLDocument")
.withFragmentNames("fragmentOne", "fragmentTwo")
.execute()
would be much nicer than having to repeat boilerplate in your test requests.