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

Replaced basketAddProduct with basketAddItem. #24

Merged
merged 2 commits into from
May 6, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions CHANGELOG-v6.md
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
### Fixed
- Fixed a link to documentation in troubleshooting section [PR-22](https://github.com/OXID-eSales/graphql-base-module/pull/22)
- Improved modules installation instructions [PR-23](https://github.com/OXID-eSales/graphql-base-module/pull/23)
- Missmatch in checkout documentation [PR-24](https://github.com/OXID-eSales/graphql-base-module/pull/24)

### Changed
- Update GraphQLite version to v5
Expand Down
10 changes: 5 additions & 5 deletions docs/consuming/PlaceOrder.rst
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ JWT in Authorization header for any of the following queries or mutations.

"Client (PWA)" -> "GraphQL API": basketCreate mutation
"Client (PWA)" <- "GraphQL API": Basket datatype or error
"Client (PWA)" -> "GraphQL API": basketAddProduct mutation
"Client (PWA)" -> "GraphQL API": basketAddItem mutation
"Client (PWA)" <- "GraphQL API": Basket datatype or error
"Client (PWA)" -> "GraphQL API": basketDeliveryMethods query
"Client (PWA)" <- "GraphQL API": array of DeliveryMethod data types
Expand Down Expand Up @@ -83,10 +83,10 @@ via the ``baskets`` field in the ``customer`` query.
This newly created basket is empty, so let's add a product to it.

.. code-block:: graphql
:caption: call to ``basketAddProduct`` mutation
:caption: call to ``basketAddItem`` mutation

mutation {
basketAddProduct(
basketAddItem(
basketId: "310e50a2b1be309b255d70462cd75507",
productId:"05848170643ab0deb9914566391c0c63",
amount: 1
Expand All @@ -102,11 +102,11 @@ This newly created basket is empty, so let's add a product to it.
}

.. code-block:: json
:caption: ``basketAddProduct`` mutation response
:caption: ``basketAddItem`` mutation response

{
"data": {
"basketAddProduct": {
"basketAddItem": {
"items": [
{
"amount": 1,
Expand Down