Skip to content

Fix Query Caching section so that example code compiles#160

Merged
dondonz merged 1 commit into
graphql-java:masterfrom
ajkerr:update-query-caching-section
Jul 16, 2024
Merged

Fix Query Caching section so that example code compiles#160
dondonz merged 1 commit into
graphql-java:masterfrom
ajkerr:update-query-caching-section

Conversation

@ajkerr
Copy link
Copy Markdown
Contributor

@ajkerr ajkerr commented Apr 18, 2024

Version 22.0 of graphql-java removed a deprecated method from the PreparsedDocumentProvider interface.

This means that the example code for setting up a Query Cache, which used the deprecated method, no longer compiles.

This PR updates the documentation so that it will compile.

Note that I'm not sure whether there's a better solution than using CompletableFuture.completedFuture(), so open to suggestions.

@dondonz
Copy link
Copy Markdown
Member

dondonz commented Jul 16, 2024

Thanks so much for contributing, and thanks for also making the change for the versioned doc.

Sorry it took a while to reply!

Leaving a breadcrumb: this is the commit with the change in GraphQL Java graphql-java/graphql-java@0b957bb

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants