graphql-python / graphql-python/graphene
Graphene Generic Scalar
- Lenguaje dominante
- Python
- Estrellas
- 8.2k
- Forks
- 818
- Métricas de merge de PR
- Sin PR fusionados en 30 d
Descripción
I have a list returning from query like this
`[ { "name": "name1", "color":"red"},
{ "name": "name2", "color": "green"} ]`
but I want it to return like JSON e.g. ` { "name1": { "color": "red"}, "name2": { "color": "green"} } `
for now I am using grapehe Generic Scalar to transform it e.g.
but the issue with this is that in query we cannot specify fields while writing query for this, e.g. we cannot do
`{ user {
color
...
}
}`
rather we will only query
`{
user
}`
do we have any built in solutions for this in graphene ?
Guía de contribución
No hay ninguna guía de contribución indexada para este repositorio
Línea de trabajo
Start by reviewing Graphene's Generic Scalar behavior and the example query shapes in the issue. Compare the requested keyed object response with the need for selectable fields; done means determining whether Graphene provides a built-in schema mechanism or whether the request requires a broader design change.
Escrito por el modelo de indexación a partir del texto del issue.
Evaluación
- Stack tecnológico
- graphql, python
- Área
- api, backend
- Tipo de issue
- Nueva funcionalidad
- Dificultad
- 5/5
- Tiempo estimado
- Más de una semana
- Estado de actividad
- Estancado
- Claridad
- Necesita aclaración
- Aptitud para principiantes
- 20/100