graphql / graphql/graphql.github.io

learn/execution resolver function - should mention signature is specific to js server

オープン
#1,141 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る
✏️ Editorial
主要言語
TypeScript
スター
889
フォーク
1.5k
平均マージ
4日 12時間
マージ済み PR(30日)
21

説明

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.

コントリビューションガイド

コントリビューションガイドを開く

調査の方向性

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.

索引モデルが issue の本文から書いたものです。

評価

技術スタック
graphql
領域
documentation
issue の種類
ドキュメント
難易度
1/5
見積もり時間
1時間未満
活発さ
停滞
明瞭さ
明確に書かれている
初心者へのやさしさ
55/100

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。