Azure / Azure/data-api-builder
"one-to-many" relationship property should be pluralized if configured property name is singular
- Langage dominant
- C#
- Étoiles
- 1.5k
- Forks
- 370
- Merge moyen
- 3 j 22 h
- PR mergées (30 j)
- 9
Description
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
}
}
}
}
}
```
Guide de contribution
Ouvrir le guide de contribution
Piste de recherche
Commencez par reproduire le problème avec la configuration montrée de la relation entre catégories et les requêtes GraphQL. C’est terminé lorsque la propriété singulière configurée "book" est exposée sous le nom "books" du côté plusieurs, tandis que la relation reste interrogeable comme indiqué.
Rédigé par le modèle d'indexation à partir du texte de l'issue.
Évaluation
- Stack technique
- csharp, graphql
- Domaine
- api
- Type d'issue
- Bug
- Difficulté
- 3/5
- Temps estimé
- 1-2 jours
- Activité
- À l'abandon
- Clarté
- Plutôt claire
- Accessibilité débutants
- 35/100