graphql-python / graphql-python/graphene-sqlalchemy

Prioritize custom type conversion over standard conversions

Abierto
#390 1 comentario 0 reacciones 0 asignados Ver en GitHub
Lenguaje dominante
Python
Estrellas
985
Forks
223
Métricas de merge de PR
Sin PR fusionados en 30 d

Descripción

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

Example:

This:

```python
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

Guía de contribución

Abrir la guía de contribución

Evaluación

Este issue todavía no se ha evaluado.

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.