Azure / Azure/data-api-builder
"one-to-many" relationship property should be pluralized if configured property name is singular
- Vorherrschende Sprache
- C#
- Sterne
- 1.5k
- Forks
- 370
- Ø Merge
- 3 T. 17 Std.
- Gemergte PRs (30 T.)
- 8
Beschreibung
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
}
}
}
}
}
```
Beitragsleitfaden
Rechercherichtung
Beginne damit, das Problem mit der gezeigten Konfiguration der Kategoriebeziehungen und den GraphQL-Abfragen zu reproduzieren. Als abgeschlossen gilt dies, wenn die konfigurierte Singular-Eigenschaft "book" auf der Many-Seite als "books" verfügbar ist und die Beziehung weiterhin wie gezeigt abfragbar bleibt.
Vom Indexierungsmodell aus dem Issue-Text verfasst.
Bewertung
- Tech-Stack
- csharp, graphql
- Bereich
- api
- Issue-Typ
- Bug
- Schwierigkeit
- 3/5
- Geschätzter Aufwand
- 1-2 Tage
- Aktivitätsstatus
- Veraltet
- Klarheit
- Größtenteils klar
- Anfängerfreundlichkeit
- 35/100