商品価格の更新
Open
enhancement
mutation
- Dominant language
- PHP
- Stars
- 9
- Forks
- 18
- PR merge metrics
- No merged PRs in 30d
Description
商品の価格を更新する Mutation が欲しい。
究極は商品規格情報の変更の Mutation があれば良いのかもしれないが、仕様が複雑になってしまうので、まずは #38 の在庫更新と同様に、商品コードを指定して商品の価格を更新するシンプルな Mutation を用意するのがよいと思う。
パラメータ
| Name | type | Description |
| ---- | --------- | ------------- |
| code | string | 商品コード (必須) |
| price01 | Int | 通常価格 |
| price02 | Int | 販売価格 (必須) |
実行例
```graphql
# 在庫無制限ではない商品
mutation {
updateProductPrice (
code: "product-001"
price01: 3000
price02: 2800
) {
code
price01
price02
}
}
```
商品コードで一意にならない場合は、エラーとする。
Contributor guide
No contributing guide indexed for this repository
Assessment
This issue has not been assessed yet.