BaseMax / BaseMax/first-nodejs-graphql

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

Ouverte
#3 1 commentaire 0 réactions 0 personnes assignées Voir sur GitHub
Langage dominant
JavaScript
Étoiles
7
Forks
1
Métriques de merge des PR
Aucune PR mergée en 30 j

Description

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)

Guide de contribution

Aucun guide de contribution indexé pour ce dépôt

Piste de recherche

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".

Rédigé par le modèle d'indexation à partir du texte de l'issue.

Évaluation

Stack technique
graphql, javascript, node.js
Domaine
api, backend
Type d'issue
Bug
Difficulté
2/5
Temps estimé
1-3 heures
Activité
À l'abandon
Clarté
Plutôt claire
Accessibilité débutants
45/100

Recevez les nouvelles issues par e-mail

Un résumé court des issues GitHub adaptées aux débutants.