graphql-python / graphql-python/graphene
Is it possible to pass an array of inputs to a relay.clientIDMutation?
- Langage dominant
- Python
- Étoiles
- 8.2k
- Forks
- 818
- Métriques de merge des PR
- Aucune PR mergée en 30 j
Description
I want to update a django model that has a one to many relation with the model that has the mutation. I know this is possible with queries and also with `graphene.Mutation` mutations using `class Arguments`.
i am currently using `graphene.relay.ClientIDMutation` and I would like to know if its possible to have a dynamic sized class of inputs as an argument for the mutation.
here is a representation of inputs(array) I want to work with,
```
mutation{
addGamePrequels(input:{
gameThatNeedsPrequels: "game2"
gamearray:[
{
name:"test1",
price:"1",
datereleased:"2020-07-17",
},
{
name:"test2",
price:"1",
datereleased:"2020-07-17",
},
{
name:"test3",
price:"1",
datereleased:"2020-07-17",
},
]
}
){
game{
name
collection{
collectionname
}
}
}
}
```
Guide de contribution
Aucun guide de contribution indexé pour ce dépôt
Piste de recherche
Commencez par graphene.relay.ClientIDMutation et la forme d’entrée dynamique de gamearray montrée dans l’issue. Vérifiez comment ClientIDMutation définit et accepte les entrées, puis comparez ce comportement avec celui de graphene.Mutation en utilisant class Arguments. Le travail est terminé lorsque l’approche prise en charge ou la limitation est clairement documentée.
Rédigé par le modèle d'indexation à partir du texte de l'issue.
Évaluation
- Stack technique
- graphql, python
- Domaine
- api, backend
- Type d'issue
- Fonctionnalité
- Difficulté
- 4/5
- Temps estimé
- 3-5 jours
- Activité
- À l'abandon
- Clarté
- À clarifier
- Accessibilité débutants
- 25/100