Fixing bug in shippingMethodId is ID! instead of [ID!]! #245
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Fixing bug in shippingMethodId is ID! instead of [ID!]! in setOrderShippingMethodMutation.ts when integrating with vendure v2.1.6
Description
Following error was happening with vendure 2.1.6 using vuestorefront with vendure integration: [VSF][error]: [GraphQL error]: Message: Variable "$shippingMethodId" of type "ID!" used in position expecting type "[ID!]!"., Location: [column: 33, line: 119], [column: 44, line: 120], Path: undefined
Noticed the issue was due to the fact that the variable shippingMethodId in node_module folder @vue-storefront > vendure-api > server > index.js had the wrong type set for shippingMethodId which was crashing vue-storefront app when trying to order and setting the shipping method
Related Issue
(#244)
Motivation and Context
You basically cannot place any order to the vendure integration does not work
How Has This Been Tested?
Change the code in the node_module index.js file that was generated code and it start working (meaning i could place an order)
Screenshots (if appropriate):
Types of changes
Checklist: