Consider making the `query` parameter optional?

オープン
#216 コメント 15 件 リアクション 1 件 担当者 0 名 GitHub で見る

まだ誰も着手していません。

評価

難易度
5/5
見積もり時間
1週間以上
初心者へのやさしさ
35/100
issue の種類
機能追加
明瞭さ
おおむね明確
活発さ
活発
領域
api

調査の方向性

まず、リンクされたプルリクエストの議論と、クエリパラメーターに関する GraphQL over HTTP 仕様の記述を読み、その後、空のクエリパラメーターについての graphql-yoga の議論を確認します。省略されたクエリパラメーターで永続化された操作をサポートしつつ仕様に準拠できるかどうかについて、判断に到達して文書化できれば完了です。

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

説明

Reference:
https://github.com/graphql/graphql-over-http/pull/175#discussion_r917932366

just pulling this out in case there is not another issue to track

in my view, query should be optional so that persisted operations, automatic or otherwise, could be considered spec-compliant.

The spec language would say something like that “the document to be executed, when sent within the http request, should be contained within the optional query parameter. When not included, the implementation can use an implementation defined method of determining the operation…”

otherwise, spec compliant implementations might be tempted to send empty query parameters to be compliant. See: https://github.com/dotansimha/graphql-yoga/pull/1589#discussion_r944641768

Tagging below discussants from those issues:
@enisdenjo
@ardatan
@glasser
@benjie

主要言語
JavaScript
スター
428
フォーク
70
平均マージ
11分
マージ済み PR(30日)
4

環境構築

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

graphql/graphql-over-http のほかの issue

graphql/graphql-over-http の issue をすべて見る

似ている issue

JavaScript の issue をもっと見る

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

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