graphql / graphql/graphql.github.io
learn/execution resolver function - should mention signature is specific to js server
- Lenguaje dominante
- TypeScript
- Estrellas
- 889
- Forks
- 1.5k
- Merge medio
- 4 d 12 h
- PR fusionados (30 d)
- 21
Descripción
From https://github.com/graphql/graphql.github.io/blob/source/src/content/learn/Learn-Execution.md
> A resolver function receives four arguments
I suggest that this is changed to "This resolver function receives four arguments"
Given that the specifications [specifies](https://spec.graphql.org/June2018/#ResolveFieldValue())
> ResolveFieldValue(objectType, objectValue, fieldName, argumentValues)
Let resolver be the internal function provided by objectType for determining the resolved value of a field named fieldName.
Return the result of calling resolver, **providing objectValue and argumentValues.**
So although the resolver function with 4 arguments is specification-compliant a resolver function does not receive four arguments. Only the first two.
Guía de contribución
Línea de trabajo
Open source/src/content/learn/Learn-Execution.md and find the statement that a resolver function receives four arguments. Review the linked GraphQL specification context, then update the wording to make clear that this four-argument signature is specific to the JavaScript server. Done means the documentation accurately distinguishes this implementation behavior from the specification.
Escrito por el modelo de indexación a partir del texto del issue.
Evaluación
- Stack tecnológico
- graphql
- Área
- documentation
- Tipo de issue
- Documentación
- Dificultad
- 1/5
- Tiempo estimado
- Menos de una hora
- Estado de actividad
- Estancado
- Claridad
- Bien especificado
- Aptitud para principiantes
- 55/100