graphql-spqr icon indicating copy to clipboard operation
graphql-spqr copied to clipboard

Example/Sample for Spring Webflux and GraphQL SPQR

Open sinwailam193 opened this issue 5 years ago • 1 comments

Hello, thank you for the work on this library, I've been looking for a code-first approach to graphql in Java and this library definitely accomplishes that. I was just wondering is there an example or sample that I can follow or reference for spring webflux and graphql-spqr? Because all the examples on https://github.com/leangen/graphql-spqr-samples are using spring web mvc. And I know that spring starter is still considered Alpha so it shouldn't be used in production if I'm not mistaken. Or is it possible that all the approach for the spring web mvc sample would also work for spring-webflux? Thank you!

sinwailam193 avatar Jun 01 '20 03:06 sinwailam193

I have experimented, and by pulling in

        <dependency>
            <groupId>io.leangen.graphql</groupId>
            <artifactId>graphql-spqr-spring-boot-starter</artifactId>
            <version>0.0.4</version>
        </dependency>
        <dependency>
            <groupId>io.leangen.graphql</groupId>
            <artifactId>graphql-spqr-spring-boot-autoconfigure</artifactId>
            <version>0.0.4</version>
        </dependency>
        <dependency>
            <groupId>com.fasterxml.jackson.module</groupId>
            <artifactId>jackson-module-jaxb-annotations</artifactId>
            <version>2.11.1</version>
        </dependency>

i managed to get it working for webflux.

But this project seems dead tbh.

Toerktumlare avatar Jul 05 '20 14:07 Toerktumlare