BaseMax / BaseMax/first-nodejs-graphql

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

未关闭
#3 1 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看
主要语言
JavaScript
星标
7
派生
1
PR 合并指标
30 天内没有已合并 PR

描述

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)

贡献指南

这个仓库没有索引到贡献指南

调研方向

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

由索引模型根据 Issue 内容生成。

评估

技术栈
graphql, javascript, node.js
领域
api, backend
Issue 类型
缺陷
难度
2/5
预计耗时
1-3 小时
活跃度
停滞
描述清晰度
基本清楚
新手友好度
45/100

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。