Azure / Azure/data-api-builder
"one-to-many" relationship property should be pluralized if configured property name is singular
- Lingua principale
- C#
- Stelle
- 1.5k
- Fork
- 370
- Merge medio
- 3g 17h
- PR unite (30g)
- 8
Descrizione
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
}
}
}
}
}
```
Guida per i contributori
Apri la guida per i contributori
Direzione di ricerca
Inizia riproducendo il problema con la configurazione mostrata della relazione tra categorie e le query GraphQL. Il lavoro è completato quando la proprietà singolare configurata "book" viene esposta come "books" sul lato molti, mentre la relazione rimane interrogabile come mostrato.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Valutazione
- Stack tecnologico
- csharp, graphql
- Ambito
- api
- Tipo di issue
- Bug
- Difficoltà
- 3/5
- Tempo stimato
- 1-2 giorni
- Stato di attività
- Ferma
- Chiarezza
- Abbastanza chiara
- Idoneità per principianti
- 35/100