Replies: 2 comments 4 replies
-
Contributions are definitely welcome. The way the project has been setup at the moment is with a starter per functionality as you have noticed. It's worth considering to alter that to the approach you mention with one starter and adding a specific dependency to activate certain functionality. Although Spring Boot also uses both approaches. If you want to use Support for graphql-java-annotations has been added by one of our active contributors @BlasiusSecundus. The sample was moved from this project to our samples project, however that PR is still a draft because of some weird issue, see: graphql-java-kickstart/samples#7. As stated on our homepage we are looking for contributors, so any help is appreciated. |
Beta Was this translation helpful? Give feedback.
-
I have somewhat neglected the sample project lately, but I plan to update it shortly using the latest release (currently uses an old snapshot) of the starter and finalize the PR. As for the stability / productin readiness: it is certainly less tested and used than the graphql-tools approach. Some major shortcomings (like the issues with dependency injection) need improvements in the GraphQL Annotations depencency first. Update: Update 2: That strange test failure still persists. I will continue investigating and try to find the cause. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
EDIT: Renamed from
“Where to find the example project with the GraphQL Annotations Spring DI work-arounds?”to “What is the status of GraphQL-Java Annotations support?”Support for GraphQL-Java Annotations seems to be disabled by default. Its is only enabled after including the following dependency:
In the Spring Boot world, I would rather have expected that support is enabled by just adding the GraphQL-Java Annotations dependency:
From the Root resolvers, directives, type extensions section of the graphql-spring-boot's README regarding the GraphQL-Java Annotations library:
I have searched the samples repository for “annotations”, “@GraphQLField” and “@GraphQLQueryResolver” but was unable to find any GraphQL-Java Annotations example at all.
I noticed that a GraphQL-Java Annotations example was added to the graphql-spring-boot repository in c8f0a72 but was instantly removed in d37d5b9.
Mutations.java
might be one of the examples I was looking for.That's giving me a surprisingly hard time using a feature advertized on the project's home page. I am wondering what the status of GraphQL-Java Annotations support actually is.
Maintainers' feedback on this would be highly appreciated. Can GraphQL-Java Annotations support be considered stable? Are any contributions needed?
Beta Was this translation helpful? Give feedback.
All reactions