graphprotocol / graphprotocol/graph-node

Feature request: Filter based on failure of some criteria and using multiple filters in the same query

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

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

area/graphql enhancement
主要言語
Rust
スター
3.2k
フォーク
1.1k
平均マージ
4日 1時間
マージ済み PR(30日)
1

説明

Do you want to request a feature or report a bug?
Feature
What is the current behavior?
It is not possible to use a global _not while filtering to negate a condition, just like described here:
https://hasura.io/docs/1.0/graphql/manual/queries/query-filters.html#filter-based-on-failure-of-some-criteria-not

It would be interesting to have this feature in combination with 'and' or 'or' operators (which are not implemented as well) to create arbitrarily complex boolean expressions involving multiple filtering criteria.

I believe this could help some specific filtering use-cases.

Thank you

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

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

はじめの一歩

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

調査の方向性

この issue では GraphQL クエリフィルターに言及し、Hasura のフィルタリングに関するドキュメントへのリンクを示していますが、リポジトリのファイル、テスト、エントリーポイントについては何も指定していません。まず graph-node における GraphQL フィルターのパースとクエリ構築のエントリーポイントを見つけ、次に否定および組み合わせた and/or 条件(ネストしたブール式を含む)を対象とするテストを定義してください。

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

評価

技術スタック
graphql, rust
領域
api
issue の種類
機能追加
難易度
5/5
見積もり時間
1週間以上
活発さ
停滞
明瞭さ
おおむね明確
初心者へのやさしさ
30/100

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

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