graphql-python / graphql-python/graphene

Is it possible to pass an array of inputs to a relay.clientIDMutation?

Đang mở
#1,232 3 bình luận 0 reaction 0 người được giao Xem trên GitHub
✨ enhancement
Ngôn ngữ chính
Python
Star
8.2k
Fork
818
Chỉ số merge pull request
Không có pull request nào được merge trong 30 ngày

Mô tả

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
}
}
}
}
```

Hướng dẫn đóng góp

Chưa lập chỉ mục được hướng dẫn đóng góp cho kho mã nguồn này

Hướng nghiên cứu

Bắt đầu với graphene.relay.ClientIDMutation và dạng input gamearray động được nêu trong issue. Kiểm tra cách ClientIDMutation định nghĩa và chấp nhận input, sau đó so sánh hành vi đó với graphene.Mutation bằng cách sử dụng class Arguments. Công việc hoàn tất khi cách tiếp cận được hỗ trợ hoặc giới hạn được ghi chép rõ ràng.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Đánh giá

Công nghệ
graphql, python
Lĩnh vực
api, backend
Loại issue
Tính năng
Độ khó
4/5
Thời gian dự kiến
3-5 ngày
Mức độ hoạt động
Đình trệ
Độ rõ ràng
Cần làm rõ
Mức phù hợp với người mới
25/100

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.