Skip to content

Introduce Service.generateApolloEnums to generate enums with a __Known interface #6611

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

Open
wants to merge 5 commits into
base: main
Choose a base branch
from

Conversation

martinbonnin
Copy link
Contributor

@martinbonnin martinbonnin commented Jul 4, 2025

This is a follow up from #6248 with the suggestions from @Emplexx

See #6243

martinbonnin and others added 2 commits July 2, 2025 16:15
* Add Enum.KNOWN__ as an intermediary interface

* use present

* update test fixtures

* Update libraries/apollo-gradle-plugin-external/src/main/kotlin/com/apollographql/apollo/gradle/api/Service.kt

Co-authored-by: Benoit 'BoD' Lubek <BoD@JRAF.org>

* Update libraries/apollo-compiler/src/main/kotlin/com/apollographql/apollo/compiler/codegen/kotlin/schema/EnumAsSealedInterfaceBuilder.kt

Co-authored-by: Benoit 'BoD' Lubek <BoD@JRAF.org>

---------

Co-authored-by: Benoit 'BoD' Lubek <BoD@JRAF.org>
@martinbonnin martinbonnin requested a review from BoD as a code owner July 4, 2025 14:21
@apollo-librarian
Copy link

apollo-librarian bot commented Jul 4, 2025

✅ Docs preview ready

The preview is ready to be viewed. View the preview

File Changes

1 new, 3 changed, 0 removed
+ (developer-tools)/apollo-operator/_sidebar.yaml
* (developer-tools)/apollo-operator/resources/subgraph.mdx
* (developer-tools)/apollo-operator/resources/supergraphschema.mdx
* (developer-tools)/kotlin/v5/migration/5.0.mdx

Build ID: f7be4104155450f111e0ed32

URL: https://www.apollographql.com/docs/deploy-preview/f7be4104155450f111e0ed32

Copy link
Contributor

@BoD BoD left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍

…ollo/compiler/codegen/Identifiers.kt

Co-authored-by: Benoit 'BoD' Lubek <BoD@JRAF.org>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants