Azure / Azure/data-api-builder

GraphQL Uuid Filter Options

オープン
#882 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る
graphql
主要言語
C#
スター
1.5k
フォーク
370
平均マージ
3日 22時間
マージ済み PR(30日)
9

説明

Different types in graphql support different filter options:
e.g.
```gql
query {
books(_filter: {id: {lt: 5 gt: 2}} title: {contains: "Book" notContains: "Great"})
{
...
}
}
```

Currently, the uuid type is handled as String which supports:
`eq, contains, notContains, startsWith, endsWith, neq, caseInsensitive, isNull`

Most of these options are not meaningful for the uuid type. We can create custom scalar types quite easily and add a restricted set of filter options. Afaict, `eq, gt, lt` make sense for uuid.

@yorek @Aniruddh25 thoughts?

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

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

調査の方向性

ファイルやテストは指定されていません。まず GraphQL UUID scalar と String filter options を割り当てるコードを見つけ、既存のカスタム scalar または filter の実装と比較します。完了条件は、UUID が合意された意味のある filter セットだけを公開し、サポートされていない string options が利用できなくなったことを coverage で確認できることです。

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

評価

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

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

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