-
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
Take default values into account when computing field keys #5384
Changes from all commits
685560c
3adf283
d95cced
da1b418
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -270,16 +270,17 @@ public abstract interface class com/apollographql/apollo3/api/BuilderScope { | |
} | ||
|
||
public final class com/apollographql/apollo3/api/CompiledArgument { | ||
public synthetic fun <init> (Ljava/lang/String;Ljava/lang/Object;ZZLkotlin/jvm/internal/DefaultConstructorMarker;)V | ||
public synthetic fun <init> (Ljava/lang/String;Lcom/apollographql/apollo3/api/Optional;ZZLkotlin/jvm/internal/DefaultConstructorMarker;)V | ||
public final fun getName ()Ljava/lang/String; | ||
public final fun getValue ()Ljava/lang/Object; | ||
public final fun getValue ()Lcom/apollographql/apollo3/api/Optional; | ||
public final fun isKey ()Z | ||
} | ||
|
||
public final class com/apollographql/apollo3/api/CompiledArgument$Builder { | ||
public fun <init> (Ljava/lang/String;Ljava/lang/Object;)V | ||
public fun <init> (Ljava/lang/String;)V | ||
public final fun build ()Lcom/apollographql/apollo3/api/CompiledArgument; | ||
public final fun isKey (Z)Lcom/apollographql/apollo3/api/CompiledArgument$Builder; | ||
public final fun value (Ljava/lang/Object;)Lcom/apollographql/apollo3/api/CompiledArgument$Builder; | ||
} | ||
|
||
public final class com/apollographql/apollo3/api/CompiledCondition { | ||
|
@@ -305,7 +306,7 @@ public final class com/apollographql/apollo3/api/CompiledField : com/apollograph | |
public final fun getType ()Lcom/apollographql/apollo3/api/CompiledType; | ||
public final fun nameWithArguments (Lcom/apollographql/apollo3/api/Executable$Variables;)Ljava/lang/String; | ||
public final fun newBuilder ()Lcom/apollographql/apollo3/api/CompiledField$Builder; | ||
public final fun resolveArgument (Ljava/lang/String;Lcom/apollographql/apollo3/api/Executable$Variables;)Ljava/lang/Object; | ||
public final fun resolveArgument (Ljava/lang/String;Lcom/apollographql/apollo3/api/Executable$Variables;)Lcom/apollographql/apollo3/api/Optional; | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Same here. An argument with a variable value is possibly absent if that variable is absent as well and unless we change the signature, there's no way to account for that. We could go through deprecation cycles but given this is a low level API, I'm hoping this is fine. |
||
} | ||
|
||
public final class com/apollographql/apollo3/api/CompiledField$Builder { | ||
|
@@ -351,7 +352,6 @@ public final class com/apollographql/apollo3/api/CompiledGraphQL { | |
public static final fun -notNull (Lcom/apollographql/apollo3/api/CompiledType;)Lcom/apollographql/apollo3/api/CompiledNotNullType; | ||
public static final fun isComposite (Lcom/apollographql/apollo3/api/CompiledNamedType;)Z | ||
public static final fun keyFields (Lcom/apollographql/apollo3/api/CompiledNamedType;)Ljava/util/List; | ||
public static final fun resolveVariables (Ljava/lang/Object;Lcom/apollographql/apollo3/api/Executable$Variables;)Ljava/lang/Object; | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Another breaking change. This one was an accidental public I'd say |
||
} | ||
|
||
public final class com/apollographql/apollo3/api/CompiledListType : com/apollographql/apollo3/api/CompiledType { | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -9,19 +9,7 @@ import com.apollographql.apollo3.exception.JsonDataException | |
import kotlin.jvm.JvmOverloads | ||
|
||
/** | ||
* A [JsonReader] that can consumes Kotlin values as Json | ||
* | ||
* values should be any of: | ||
* - String | ||
* - Int | ||
* - Double | ||
* - Long | ||
* - JsonNumber | ||
* - null | ||
* - Map<String, Any?> where values are any of these values recursively | ||
* - List<Any?> where values are any of these values recursively | ||
* | ||
* Anything else is undefined | ||
* A [JsonReader] that can consumes [ApolloJsonElement] values as Json | ||
* | ||
* To read from a [okio.BufferedSource], see also [BufferedSourceJsonReader] | ||
* | ||
|
@@ -423,3 +411,22 @@ constructor( | |
} | ||
} | ||
} | ||
|
||
/** | ||
* A typealias for a type-unsafe Kotlin representation of JSON. This typealias is | ||
* mainly for internal documentation purposes and low-level manipulations and should | ||
* generally be avoided in application code. | ||
* | ||
* [ApolloJsonElement] can be any of: | ||
* - String | ||
* - Int | ||
* - Double | ||
* - Long | ||
* - JsonNumber | ||
* - null | ||
* - Map<String, ApolloJsonElement> where values are any of these values recursively | ||
* - List<ApolloJsonElement> where values are any of these values recursively | ||
* | ||
* Anything else is undefined | ||
*/ | ||
typealias ApolloJsonElement = Any? | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Interesting that this doesn't show in apiDump. I guess it's source-breaking only. In all cases, I wish I've done that earlier to be able to point in KDoc to what There was a problem hiding this comment. Choose a reason for hiding this commentThe 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.
Breaking change.