Skip to content

Commit

Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Re-introduce CompiledArgument.name and CompiledArgument.isKey as depr…
Browse files Browse the repository at this point in the history
…ecated
BoD committed Apr 2, 2024
1 parent c9238fc commit a7efb69
Showing 2 changed files with 11 additions and 1 deletion.
2 changes: 2 additions & 0 deletions libraries/apollo-api/api/apollo-api.api
Original file line number Diff line number Diff line change
@@ -268,7 +268,9 @@ public abstract interface class com/apollographql/apollo3/api/BuilderScope {
public final class com/apollographql/apollo3/api/CompiledArgument {
public synthetic fun <init> (Lcom/apollographql/apollo3/api/CompiledArgumentDefinition;Lcom/apollographql/apollo3/api/Optional;Lkotlin/jvm/internal/DefaultConstructorMarker;)V
public final fun getDefinition ()Lcom/apollographql/apollo3/api/CompiledArgumentDefinition;
public final fun getName ()Ljava/lang/String;
public final fun getValue ()Lcom/apollographql/apollo3/api/Optional;
public final fun isKey ()Z
}

public final class com/apollographql/apollo3/api/CompiledArgument$Builder {
Original file line number Diff line number Diff line change
@@ -35,7 +35,7 @@ class CompiledField internal constructor(
* value with variables substituted for their values.
*/
@Deprecated("This function does not distinguish between null and absent arguments. Use argumentValue instead", ReplaceWith("argumentValue(name = name, variables = variables)"))
@ApolloDeprecatedSince(ApolloDeprecatedSince.Version.v4_0_0)
@ApolloDeprecatedSince(v4_0_0)
fun resolveArgument(
name: String,
variables: Executable.Variables,
@@ -408,6 +408,14 @@ class CompiledArgument private constructor(
*/
val value: Optional<CompiledValue>,
) {
@Deprecated("Use definition.name instead", ReplaceWith("definition.name"))
@ApolloDeprecatedSince(v4_0_0)
val name get() = definition.name

@Deprecated("Use definition.isKey instead", ReplaceWith("definition.isKey"))
@ApolloDeprecatedSince(v4_0_0)
val isKey get() = definition.isKey

class Builder(
private val definition: CompiledArgumentDefinition,
) {

0 comments on commit a7efb69

Please sign in to comment.