"Persisted queries" / "stored operations"
まだ誰も着手していません。
評価
- 難易度
- 5/5
- 見積もり時間
- 1週間以上
- 初心者へのやさしさ
- 25/100
- issue の種類
- 機能追加
- 明瞭さ
- 説明が足りない
- 活発さ
- 停滞
調査の方向性
まず issue の本文と、リンクされている persisted-query および stored-operation の参照を確認し、競合する実装と用語を理解してください。stored operations をどのように表現し、文書化すべきかについて、仕様の方向性が確定すれば完了です。
索引モデルが issue の本文から書いたものです。
説明
The terms "persisted queries" and "stored operations" are typically used interchangably. The traditional name is "persisted queries", but the term "stored operations" acknowledges that this approach can be used with mutation and subscription operations in addition to queries.
There's lots of different implementations of this feature, often with different aims. Sometimes it's used to block all but a small allow-list of operations. Sometimes it's used to reduce network bandwidth for GraphQL requests. Sometimes it's used to improve HTTP cacheability (GET requests with short URLs).
Relevant links:
- https://relay.dev/docs/guides/persisted-queries/
- https://www.apollographql.com/docs/apollo-server/performance/apq/
- https://github.com/graphile/persisted-operations
- https://chillicream.com/docs/hotchocolate/v13/performance/persisted-queries/
- https://chillicream.com/docs/hotchocolate/v13/performance/automatic-persisted-queries
- https://github.com/restorando/graphql-query-whitelist
Some implementations require queries to be persisted to the server in advance of receiving queries (e.g. at build time); others negotiate the storage of the query with the server for bandwidth optimisation (e.g. automatic persisted queries).
Typically persisted queries replace the query in {query, variables, operationName} with another field (typically id) that indicates an identifier for the operation - perhaps a number or hash.
Typically stored operations remove the query in {query, variables, operationName} and instead indicate the operation via a hash or similar identifier in the extensions property.
One of the optimisations that stored operations enable is that the parse and validate steps of GraphQL execution can be performed once per stored operation and cached; future requests for the same stored operation can jump straight to the execute step.
- 主要言語
- JavaScript
- スター
- 428
- フォーク
- 70
- 平均マージ
- 11分
- マージ済み PR(30日)
- 4
環境構築
- Dockerfile・Docker Compose ファイルなし
- プルリクエストのテンプレートあり
- コントリビューションガイドを読む
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
graphql/graphql-over-http のほかの issue
-
難易度 3/5 半日 初心者へのやさしさ 25/100
graphql/graphql-over-http#446 · コメント 3 件 ·
-
難易度 5/5 1週間以上 初心者へのやさしさ 25/100
graphql/graphql-over-http#415 ·
-
難易度 5/5 1週間以上 初心者へのやさしさ 25/100
graphql/graphql-over-http#392 · リアクション 4 件 ·
-
難易度 4/5 3〜5日 初心者へのやさしさ 35/100
graphql/graphql-over-http#242 · コメント 8 件 ·
-
難易度 5/5 1週間以上 初心者へのやさしさ 35/100
graphql/graphql-over-http#216 · コメント 15 件 · リアクション 1 件 ·
graphql/graphql-over-http の issue をすべて見る
似ている issue
-
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
メンテナーはふだん 1 日以内に返信
-
enhancement
難易度 1/5 1時間未満 初心者へのやさしさ 84/100
メンテナーはふだん 1 日以内に返信
-
難易度 1/5 1時間未満 初心者へのやさしさ 88/100
-
難易度 2/5 1〜3時間 初心者へのやさしさ 66/100
remotion-dev/remotion#13341 ·
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 70/100
svix/svix-webhooks#2808 ·
メンテナーはふだん 1 日以内に返信