spring-projects / spring-graphql

Spring Integration for GraphQL
https://spring.io/projects/spring-graphql
Apache License 2.0
1.53k stars 306 forks source link

Parameterless method retrieveSync() does not exist in RequestSpec #1042

Closed ullenboom closed 3 months ago

ullenboom commented 3 months ago

This leads to a compiler error:

Project project = graphQlClient.documentName("projectReleases") 
        .variable("slug", "spring-framework") 
        .retrieveSync()
        .toEntity(Project.class);

https://github.com/spring-projects/spring-graphql/blob/137d12ef70890fed790b2683606852778c0a3c31/spring-graphql-docs/modules/ROOT/pages/client.adoc?plain=1#L473

bclozel commented 3 months ago

Thanks for letting us know @ullenboom - I've moved both "client" and "testing" sections to compiled code snippets to avoid this situation in the future. Changes should be reflected shorty here: https://docs.spring.io/spring-graphql/reference/1.3-SNAPSHOT/client.html