apollo-kotlin
apollo-kotlin copied to clipboard
:robot: A strongly-typed, caching GraphQL client for the JVM, Android, and Kotlin multiplatform.
**Use case** Our schema has a few custom server-side directives defined, but the validation does not seem to exist at code generation time when evaluating the GraphQL operation source. **Describe...
**Summary** In gradle project with kotlin set codegen option to Java. ``` apollo { generateKotlinModels.set(false) } ``` all generated Mutations/Queries/Data are generated with public properties `public final String entityId;` expected...
This issue lists Renovate updates and detected dependencies. Read the [Dependency Dashboard](https://docs.renovatebot.com/key-concepts/dashboard/) docs to learn more. ## Repository problems These problems occurred while renovating this repository. [View logs](https://developer.mend.io//github/apollographql/apollo-kotlin). - WARN:...
Java Runtime
Now that `apollo-runtime` brings `kotlinx.coroutines` as a dependency, it's not as easy to work with interceptors, etc.. in Java because everything is a `Flow` or `suspend` function. This issue is...
Follow up from https://github.com/apollographql/apollo-kotlin/issues/3566 Allo per-type client-side cache control logic: ```kotlin /** * coordinates is a schema coordinates as in https://github.com/graphql/graphql-spec/issues/735 */ class ExpirationInfo(val coordinates: String, val maxAge: Long) fun...
Follow up from https://github.com/apollographql/apollo-kotlin/issues/3566 Allow to extend the schema on the client with directives: ```graphql extend type Query { currentMinute @maxAge(60) } extend type Day @maxAge(86400) ```
In order to avoid pushing on main, we could have `tag.main.kts` do the following: * open a pull request to drop the `-SNAPSHOT`, merge it automatically * tag the release...
Right now, we generate type information in codegen through `CompiledField.type` and `CompiledFragment.possibleTypes`. When normalizing/reading from the cache, we use the same `collectFields()` algorithm that we use in codegen. Except that...
Support this: ```graphql extend schema @magic(url: “https://specs.apollo.dev/link/v1.0”, as: “magic”) @magic(url: “https://specs.apollo.dev/federation/v2.0”, as: “fed2”) type Product @fed2__key(fields: "id") { id: ID! } ```
Currently it is possible to repeat non-repeatable directives: ```graphql { field @nonnull @nonnull } ``` This should throw a validation error instead