Skip to content

New Federation resolve_reference ignores scalar mappings #884

@ryou90

Description

@ryou90

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions