Skip to content

Prioritize custom type conversion over standard conversions #390

@PaulSchweizer

Description

@PaulSchweizer

As discussed with @erikwrede we have to make sure that we prioritize registered custom type conversions over the defaults.

Example:

This:

from sqlalchemy_utils import JSONType

@convert_sqlalchemy_type.register(JSONType)
def convert_column_to_json(*args, **kwargs):
    return graphene.types.generic.GenericScalar

will result in a JSONString field instead of a GenericScalar

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