Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

商品価格変更の Mutation を実装 #110

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

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. と出てなぜか再実行できない・・・

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.

1 participant