-
Notifications
You must be signed in to change notification settings - Fork 657
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
🧪 @experimental support #4091
🧪 @experimental support #4091
Conversation
✅ Deploy Preview for apollo-android-docs canceled.
|
apollo-compiler/src/main/kotlin/com/apollographql/apollo3/compiler/ir/IrBuilder.kt
Show resolved
Hide resolved
kotlin-js-store/yarn.lock
Outdated
dependencies: | ||
mime-types "~2.1.34" | ||
negotiator "0.6.3" | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
No idea why this was added.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
And it was just removed 🤔 .... My current guess is that it depends if it's the root project or the tests project that is run last.... But that'd be a bit scary TBH
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
My current guess is that it depends if it's the root project or the tests project that is run last
confirmed. I'll make a follow up PR
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Very cool!
...piler/src/main/kotlin/com/apollographql/apollo3/compiler/codegen/kotlin/helpers/NamedType.kt
Show resolved
Hide resolved
apollo-compiler/src/main/kotlin/com/apollographql/apollo3/compiler/ir/IrBuilder.kt
Show resolved
Hide resolved
* - AnnotationTarget.PROPERTY | ||
* - AnnotationTarget.CLASS | ||
* | ||
* Default: "com.apollographql.apollo3.annotations.ApolloExperimental" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm not 100% convinced we should re-use ApolloExperimental
for the default as it is currently kind of specific to the project's codebase, so maybe it would be worth it to introduce a specific Experimental
annotation.
Not a big deal for the time being!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Agreed the semantics are different but didn't find a good alternative name. GraphQLExperimental
maybe ?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I was thinking just Experimental
but I like GraphQLExperimental
too. Another idea: SchemaExperimental
.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I was a bit concerned Experimental
would clash with other annotation but maybe it's not the case. Maybe we should make @Experimental
@ApolloExperimental
🙃 .
Just kidding. I'll go with @Experimental
and we'll see how that unfolds.
Add support for the
@experimental
directive. By default, it annotates experimental fields, input fields and enum values withcom.apollographql.apollo3.annotations.Experimental
. This can be changed with a Gradle setting: