Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Question/Doc: Generate From Schema and tests #472

Closed
xenoterracide opened this issue Aug 23, 2022 · 1 comment
Closed

Question/Doc: Generate From Schema and tests #472

xenoterracide opened this issue Aug 23, 2022 · 1 comment
Labels
for: external-project Needs a change in external project

Comments

@xenoterracide
Copy link

Can you generate classes from the schema? can a statically typed client be generated and used for tests with the WebTestClient... under the hood?

@spring-projects-issues spring-projects-issues added the status: waiting-for-triage An issue we've not yet triaged label Aug 23, 2022
@rstoyanchev
Copy link
Contributor

rstoyanchev commented Nov 3, 2022

We don't support generating classes, but you could use DGS code generation with our GraphQlClient and GraphQlTester which can run on multiple transports. Request classes can serialize to a String document that can be passed as input to the client and tester, while response classes deserialize as JSON.

Closing for now, but let us know if you run into any issues.

@rstoyanchev rstoyanchev closed this as not planned Won't fix, can't repro, duplicate, stale Nov 3, 2022
@rstoyanchev rstoyanchev added for: external-project Needs a change in external project and removed status: waiting-for-triage An issue we've not yet triaged labels Nov 3, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
for: external-project Needs a change in external project
Projects
None yet
Development

No branches or pull requests

3 participants