Azure / Azure/data-api-builder
"one-to-many" relationship property should be pluralized if configured property name is singular
- 主要言語
- 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