Azure / Azure/data-api-builder

Support multiple create mutation for self-referencing relationships.

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

説明

PR https://github.com/Azure/data-api-builder/pull/2138 adds support for querying relationships that reference the same entity (self-join tables).

Extend multiple create functionality to support relationships that reference itself.

Some things to consider are:
- Accurate determination of referencing/referenced entity. Though, referenced and referencing entity are both the same, we need to be able to identify whether **top level item** (or) **related item** should be created first.
- The current data structure maintains the relationship metadata at the entity level. PR https://github.com/Azure/data-api-builder/pull/2138 introduces changes to maintain the relationship metadata at the granularity level of relationship. This new data structure should be used during query generation and rest of the mutation flows.

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

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

調査の方向性

まず PR #2138 を確認して、自己参照リレーションのメタデータと複数作成 mutation のフローを理解します。クエリ生成と残りの mutation パスを追跡し、自己参照リレーションにおいてトップレベルのアイテムと関連アイテムが正しい順序で作成されることを確認します。

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

評価

技術スタック
csharp, graphql
領域
api, databases
issue の種類
機能追加
難易度
4/5
見積もり時間
3〜5日
活発さ
停滞
明瞭さ
おおむね明確
初心者へのやさしさ
32/100

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

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