BaseMax / BaseMax/first-nodejs-graphql

Bug due to typo, can't create an author.

Abierto
#3 1 comentario 0 reacciones 0 asignados Ver en GitHub
Lenguaje dominante
JavaScript
Estrellas
7
Forks
1
Métricas de merge de PR
Sin PR fusionados en 30 d

Descripción

Hey there, super neat repo and a nice introduction to the topic of GraphQL. I was actually using this to introduce an intern to the concept. It's been very helpful to quickly put a presentation together. I did notice one small bug. Due to a typo, when adding an author, you're not actually getting the length from the authors array. Instead, you've got "author" which throws the error "Cannot access 'author' before initialization".

Here's the whole changelog to fix it:
![image](https://github.com/BaseMax/first-nodejs-graphql/assets/84988462/01239831-199d-4fc4-9ddd-a8d777961903)

Guía de contribución

No hay ninguna guía de contribución indexada para este repositorio

Línea de trabajo

Start by locating the author-creation resolver or entry point and inspect how the authors array length is read. Compare the referenced changelog image with the current code, correct the typo, and verify that creating an author no longer raises "Cannot access 'author' before initialization".

Escrito por el modelo de indexación a partir del texto del issue.

Evaluación

Stack tecnológico
graphql, javascript, node.js
Área
api, backend
Tipo de issue
Error
Dificultad
2/5
Tiempo estimado
1-3 horas
Estado de actividad
Estancado
Claridad
Bastante claro
Aptitud para principiantes
45/100

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.