MutationResult type
Computes the entity fields returned by a create or update mutation.
DAB returns the primary key plus primitive input fields. Relationship inputs are returned as primary-key-only nested objects by the SDK. Non-Date, non-keyed objects are omitted. Arrays are serialized and selected by the runtime, but their response is not guaranteed by this result contract.
type MutationResult<T, TInput> = GraphQLResponseValue<
TInput extends unknown
? Simplify<
PrimaryKeyOnly<T> & {
[K in RequiredMutationResultKey<T, TInput>]-?: MutationResultValue<
T,
K
>
} & {
[K in Exclude<
MutationResultKey<T, TInput>,
RequiredMutationResultKey<T, TInput>
>]?: MutationResultValue<T, K>
}
>
: never
>