Skip to content

Conversation

okazy
Copy link
Contributor

@okazy okazy commented Feb 18, 2021

refs #109

schema

type Mutation {
  updateProductPrice(
    """SKU"""
    code: String!

    """Regular Price"""
    price01: Int

    """Selling Price"""
    price02: Int!
  ): ProductClass
}

実行例

リクエスト

mutation {
    updateProductPrice (
        code: "sand-01"
        price01: 200
        price02: 100
    ) {
        code
        price01
        price02
    }
}

レスポンス

{
  "data": {
    "updateProductPrice": {
      "code": "sand-01",
      "price01": 200,
      "price02": 100
    }
  }
}

@okazy okazy added enhancement New feature or request mutation labels Feb 18, 2021
@okazy okazy added this to the 1.0.1 milestone Feb 18, 2021
@okazy
Copy link
Contributor Author

okazy commented Feb 24, 2021

落ちているテストはガチャです。
Oh no! An error occurred. The job could not be restarted. と出てなぜか再実行できない・・・

@ji-eunsoo
Copy link
Contributor

Mutationという更新系のAPIで商品価格変更をしています。
最新のAPIで動作確認する必要があります。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request mutation

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants