graphql-python / graphql-python/graphql-core-legacy
Include `extensions` field in GraphQLError.
- Lenguaje dominante
- Python
- Estrellas
- 372
- Forks
- 175
- Métricas de merge de PR
- Sin PR fusionados en 30 d
Descripción
The [GraphQL docs](http://graphql.github.io/graphql-js/error/#errors) specify a field called `extensions` is available for a GraphQLError. GraphQL Python does seem to have a ['slot'](https://github.com/graphql-python/graphql-core/blob/master/graphql/error/base.py#L13) for this.
Users could add the field using a wrapper, but it looks like something that could easily be added to the class – unless I'm missing something!
Guía de contribución
No hay ninguna guía de contribución indexada para este repositorio
Línea de trabajo
The issue points to graphql/error/base.py, especially the GraphQLError slot around line 13; start there and compare it with the GraphQL documentation for the extensions field. Add support for exposing extensions on GraphQLError, and consider how the documented field shape should be verified.
Escrito por el modelo de indexación a partir del texto del issue.
Evaluación
- Stack tecnológico
- graphql, python
- Área
- api
- Tipo de issue
- Nueva funcionalidad
- Dificultad
- 2/5
- Tiempo estimado
- 1-3 horas
- Estado de actividad
- Estancado
- Claridad
- Bastante claro
- Aptitud para principiantes
- 55/100