Hacktoberfest 2026:メンテナが10月に向けて印を付けた、オープンで初心者向けの issue。 Hacktoberfest の issue を見る

[GraphQL] Introduce ArgumentParameter for first-class GraphQL schema argument metadata

オープン
#7,966 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る

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

評価

難易度
5/5
見積もり時間
1週間以上
初心者へのやさしさ
25/100
issue の種類
機能追加
明瞭さ
説明が足りない
活発さ
静か
技術スタック
php

調査の方向性

src/GraphQl/Type/FieldsBuilder.php から始め、getFilterArgs() と getParameterArgs() を比較してから、issue で言及されているメタデータファクトリとリソースエクストラクタを追跡します。GraphQL スキーマに ArgumentParameter ベースのソースと引数構築パスが 1 つあり、影響を受ける PHP 属性、XML、YAML、ドキュメントのパスが更新されていれば完了です。

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

説明

GraphQL RFC

Context

src/GraphQl/Type/FieldsBuilder.php builds GraphQL arguments from two parallel sources today:

  1. Legacy Operation::getFilters() (list of string filter ids) → getFilterArgs().
  2. Modern Operation::getParameters() (QueryParameter collection) → getParameterArgs().

Both paths walk FilterInterface::getDescription(), normalize bracketed keys via parse_str, and emit InputObjectType trees — with different output shapes and divergent edge-case handling (see also #7953-adjacent bug around bracketed keys + object-form filters).

Proposal

Introduce an ArgumentParameter (working name) — a metadata-layer concept that marks "this parameter participates in the GraphQL schema" as first-class. FieldsBuilder then has a single source of truth and a single argument-building pass, instead of two divergent paths.

Sketch:

  • A dedicated parameter subtype, or an explicit graphQl: true|ArgumentDescriptor flag on QueryParameter.
  • Operation::getFilters() is normalized into synthetic ArgumentParameters for GraphQL, deprecating the dual code path inside FieldsBuilder.
  • FieldsBuilder only consumes ArgumentParameters.

Scope

  • 4.4 / 5.0 — not a backport-friendly change.
  • Touches metadata factories, schema builder, probably the resource extractors (PHP attribute / XML / YAML), and docs.

Why a note, not a plan

This issue exists so the idea is tracked. Real design happens later; the 4.3 branch only does the surgical bug fix + helper extraction.

主要言語
PHP
スター
2.6k
フォーク
982
平均マージ
1日 16時間
マージ済み PR(30日)
59

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

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

はじめの一歩

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

api-platform/core のほかの issue

api-platform/core の issue をすべて見る

似ている issue

PHP の issue をもっと見る

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

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