graphql-python / graphql-python/graphene
Is it possible to pass an array of inputs to a relay.clientIDMutation?
- Vorherrschende Sprache
- Python
- Sterne
- 8.2k
- Forks
- 818
- PR-Merge-Kennzahlen
- Keine gemergten PRs in 30 T.
Beschreibung
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
}
}
}
}
```
Beitragsleitfaden
Für dieses Repository ist kein Beitragsleitfaden indexiert
Bewertung
Dieses Issue wurde noch nicht bewertet.