-
Notifications
You must be signed in to change notification settings - Fork 341
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
[feature] support @oneOf directive #1891
Comments
Hello 👋 Haven't tried it but 'm guessing you might be able to support it by writing some custom hooks + data fetcher that could handle some sort of wrapper. Thanks, |
Thanks for the prompt response. My second part of the question was: it seems there are multiple directives that are supported according to the docs (e.g., |
|
graphql-java
added support for the@oneOf
directive in the 21.2 release. I understand thatgraphql-kotlin
is still using the21.1
release, but I was wondering if I will be able to use this directive out-of-the-box.In the docs I can see that other directives like
@skip
are supported:However, how do I annotate my schema and use
graphql-kotlin-schema-generator
to generate this annotations for me? What I want is to write Kotlin code like this:and
graphql-kotlin-schema-generator
will generate code like:Do I have to use custom directives for this?
The text was updated successfully, but these errors were encountered: