-
-
Notifications
You must be signed in to change notification settings - Fork 114
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Increase customizability of values that can be returned by apiReturnType #1167
Comments
@matsudamper your approach looks good to me. But can you please add a few unit tests:
|
@matsudamper can you please add a few unit tests for the functionality you added? Thank you. |
Hi, @kobylynskyi, @matsudamper! UPD: Spring is not the problem, see details below |
@DobryninVyacheslav in this case I guess we would need to introduce another property, something like |
Now I tested my code again and found that the problem was not in Spring. |
In the end, I came to the conclusion that these settings allow the use of DataLoader and looks like a good solution: apiReturnType = "reactor.core.publisher.Mono"
apiReturnListType = "reactor.core.publisher.Flux" For blocking code too. You can use |
Description
I want to generate the following code
DataLoader
The apiReturnType setting does not seem to allow the following to be output. We would like to enable this.
CompletionStage<DataFetcherResult<T>>
Describe the solution you'd like
I want to enable the following statements
Describe alternatives you've considered
Other
I can submit the code.
https://github.com/kobylynskyi/graphql-java-codegen/compare/main...matsudamper:graphql-java-codegen:feature/damper/api-return-type-placeholder?expand=1
The text was updated successfully, but these errors were encountered: