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

Product update mutation not working properly #41

Closed
ghost opened this issue Aug 11, 2021 · 2 comments
Closed

Product update mutation not working properly #41

ghost opened this issue Aug 11, 2021 · 2 comments
Assignees
Labels
help wanted Extra attention is needed

Comments

@ghost
Copy link

ghost commented Aug 11, 2021

I am trying create a product on bagisto with graphql product create mutation but have not found the way to pass name so product created without name on bagisto, And Update mutation also not working
so product name and description not getting update and inventory and price of the product update work fine.
Facing this issue for simple and configurable product

@naresh-webkul
Copy link
Contributor

Hi,
Not getting such issue , working fine create and update product mutation.

@vivek-webkul vivek-webkul added the help wanted Extra attention is needed label Aug 26, 2021
@vivek-webkul
Copy link
Member

@tarunwebkul
In product creation mutation, Bagisto only used ProductType, Attributefamily, and SKU these fields, If you wish to use the name in product mutation, you have to use Update mutation:

To Create product Mutation: https://github.com/bagisto/headless-ecommerce/blob/main/Postman_APIs/Collections/Catalog.postman_collection.json#L647

To Update product Mutation: https://github.com/bagisto/headless-ecommerce/blob/main/Postman_APIs/Collections/Catalog.postman_collection.json#L674

For more help, you can use provided Postman APIs collection.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

2 participants