Skip to content

Remove apollo-execution #5978

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

Merged
merged 2 commits into from
Jun 18, 2024
Merged

Remove apollo-execution #5978

merged 2 commits into from
Jun 18, 2024

Conversation

martinbonnin
Copy link
Contributor

@martinbonnin martinbonnin requested a review from BoD as a code owner June 17, 2024 18:10
Copy link

netlify bot commented Jun 17, 2024

Deploy Preview for apollo-android-docs canceled.

Name Link
🔨 Latest commit 0d43fdb
🔍 Latest deploy log https://app.netlify.com/sites/apollo-android-docs/deploys/66707fbe8a91f30008984343

Comment on lines -49 to -63
open annotation class com.apollographql.apollo3.annotations/GraphQLAdapter : kotlin/Annotation { // com.apollographql.apollo3.annotations/GraphQLAdapter|null[0]
constructor <init>(kotlin/String) // com.apollographql.apollo3.annotations/GraphQLAdapter.<init>|<init>(kotlin.String){}[0]
final val forScalar // com.apollographql.apollo3.annotations/GraphQLAdapter.forScalar|{}forScalar[0]
final fun <get-forScalar>(): kotlin/String // com.apollographql.apollo3.annotations/GraphQLAdapter.forScalar.<get-forScalar>|<get-forScalar>(){}[0]
}
open annotation class com.apollographql.apollo3.annotations/GraphQLName : kotlin/Annotation { // com.apollographql.apollo3.annotations/GraphQLName|null[0]
constructor <init>(kotlin/String) // com.apollographql.apollo3.annotations/GraphQLName.<init>|<init>(kotlin.String){}[0]
final val name // com.apollographql.apollo3.annotations/GraphQLName.name|{}name[0]
final fun <get-name>(): kotlin/String // com.apollographql.apollo3.annotations/GraphQLName.name.<get-name>|<get-name>(){}[0]
}
open annotation class com.apollographql.apollo3.annotations/GraphQLObject : kotlin/Annotation { // com.apollographql.apollo3.annotations/GraphQLObject|null[0]
constructor <init>(kotlin/String = ...) // com.apollographql.apollo3.annotations/GraphQLObject.<init>|<init>(kotlin.String){}[0]
final val name // com.apollographql.apollo3.annotations/GraphQLObject.name|{}name[0]
final fun <get-name>(): kotlin/String // com.apollographql.apollo3.annotations/GraphQLObject.name.<get-name>|<get-name>(){}[0]
}
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Those annotations have moved as well

Comment on lines +1 to +45
schema {
query: Query
}

scalar Fields

"""
The root query
"""
type Query {
apolloClients: [ApolloClient!]!

"""
Returns null if an ApolloClient with the given id is not found.
"""
apolloClient(id: ID!): ApolloClient
}

type ApolloClient {
id: ID!

displayName: String!

normalizedCaches: [NormalizedCache!]!

normalizedCache(id: ID!): NormalizedCache
}

type NormalizedCache {
id: ID!

displayName: String!

recordCount: Int!

records: [Record!]!
}

type Record {
key: String!

fields: Fields!

sizeInBytes: Int!
}
Copy link
Contributor Author

Choose a reason for hiding this comment

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

New apollo-execution can generate a SDL file from the code itself (it's now truly code-first). This file is generated from the Kotlin code and checked in source control to monitor for API changes (just like BCV but for the network boundary)

Copy link
Contributor

Choose a reason for hiding this comment

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

Super neat! 👍

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Now that I think about it, there should be a "schemaDump" and "schemaCheck" task, just like BCV too, I'll think of something

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.

🚀

@martinbonnin martinbonnin merged commit 757f6c6 into main Jun 18, 2024
9 checks passed
@martinbonnin martinbonnin deleted the remove-execution branch June 18, 2024 08:07
BoD pushed a commit to BoD/apollo-kotlin that referenced this pull request Jul 1, 2024
* Remove apollo-execution

* fix tests
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