The new Federation feature automatically generates a resolve_reference method. However, this ignores any scalar mapping.
The method receives the parameters via **kwargs: Any, which means that individual scalar mappers cannot perform any transformations.
Solution:
Within the function, the kwargs are filtered based on the key_fields. Here, you could refer to the annotations and apply the corresponding scalar mappers.
The new Federation feature automatically generates a resolve_reference method. However, this ignores any scalar mapping.
The method receives the parameters via **kwargs: Any, which means that individual scalar mappers cannot perform any transformations.
Solution:
Within the function, the kwargs are filtered based on the key_fields. Here, you could refer to the annotations and apply the corresponding scalar mappers.