Azure / Azure/data-api-builder

"one-to-many" relationship property should be pluralized if configured property name is singular

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

説明

The "many" side of the relationship doesn't get pluralized correctly. For example, this configuration

```json
"category": {
"source": "dbo.categories",
"relationships": {
"book": {
"cardinality": "many",
"target.entity": "book"
}
},
"permissions": [{
"role": "anonymous",
"actions": [ "*" ]
}]
}
```

should allow this GraphQL to be executed:

```graphql
{
categories {
items {
category
books {
items {
id
title
}
}
}
}
}
```

but instead I have this ("book" instead of "books")

```graphql
{
categories {
items {
category
book {
items {
id
title
}
}
}
}
}
```

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

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

調査の方向性

まず、示されているカテゴリ関係の設定と GraphQL クエリで問題を再現します。設定された単数形のプロパティ "book" が多側で "books" として公開され、関係を引き続き示されているとおりにクエリできれば完了です。

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

評価

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

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

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