diff --git a/spring-graphql-docs/src/docs/asciidoc/index.adoc b/spring-graphql-docs/src/docs/asciidoc/index.adoc index b288c887..0c49125d 100644 --- a/spring-graphql-docs/src/docs/asciidoc/index.adoc +++ b/spring-graphql-docs/src/docs/asciidoc/index.adoc @@ -423,6 +423,69 @@ If the repository is `ReactiveQuerydslPredicateExecutor`, the builder returns `DataFetcher>` or `DataFetcher>`. Spring Data supports this variant for MongoDB. +You will also need to configure Querydsl in your build +(see https://querydsl.com/static/querydsl/latest/reference/html/ch02.html[the official reference documentation]): + +[source,groovy,indent=0,subs="verbatim,quotes,attributes",role="primary"] +.Gradle +---- +dependencies { + //... + + annotationProcessor "com.querydsl:querydsl-apt:$querydslVersion:jpa", + 'org.hibernate.javax.persistence:hibernate-jpa-2.1-api:1.0.2.Final', + 'javax.annotation:javax.annotation-api:1.3.2' +} + +compileJava { + options.annotationProcessorPath = configurations.annotationProcessor +} +---- +[source,xml,indent=0,subs="verbatim,quotes,attributes",role="secondary"] +.Maven +---- + + + + com.querydsl + querydsl-apt + ${querydsl.version} + jpa + provided + + + org.hibernate.javax.persistence + hibernate-jpa-2.1-api + 1.0.2.Final + + + javax.annotation + javax.annotation-api + 1.3.2 + + + + + + com.mysema.maven + apt-maven-plugin + ${apt-maven-plugin.version} + + + + process + + + target/generated-sources/java + com.querydsl.apt.jpa.JPAAnnotationProcessor + + + + + +---- + + The {github-main-branch}/samples/webmvc-http[webmvc-http] sample in the Spring GraphQL repository uses Querydsl to fetch `artifactRepositories`.