Commerce: GraphQL Support

Created on 30 Oct 2019  路  11Comments  路  Source: craftcms/commerce

I need to be able to CRUD products in Craft Commerce via an API. Either REST or GraphQL. Are there any plans for implementing this?

I see Craft CMS has an issue https://github.com/craftcms/cms/issues/4835 at the 4.0 milestone. I hope that also includes mutations on Craft Commerce.

馃挕 enhancement

Most helpful comment

Yes, plans to have support for GraphQL in Commerce in 3.0 this year - mutation support coming to the GraphQL API after that.

All 11 comments

Yes, plans to have support for GraphQL in Commerce in 3.0 this year - mutation support coming to the GraphQL API after that.

  • [x] Products
  • [x] Variants
  • [ ] Orders

Great work guys. So if I understand this correctly, Craft Commerce 3.0 has GraphQL read-only support for all Commerce-entities?

If then, do you have any plans for when mutations will come?

Keep up the good work!

@nitech Read only support for products. Will extend that to variants and orders very soon.

@lukeholder any update on variants/orders?

@timkelty Variant support coming in 3.1, orders after that.

we need to know how to load the products and update the order status. Was hoping that the mutation support would be possible to add the product/variants and update the orders from the erp.
Is this in the works?

Mutations just landed in craft core in 3.5 a couple weeks ago. We need to first add mutation support for Products and Variants.

Then when Craft's core GraphQL supports gets per-session/user permissions we will look to add Order support.

+1 for GraphQL support for orders. Would love to try and integrate this with clients accounting system to pull received orders, update order status. Our current system is a bit clumsy.

Is there an expected timeline on Products mutations? I'd love to be able to use Craft for an upcoming project but need some way to automate managing products. There's no REST API is there?

That's a really nice feature!

2 questions:

  • how to we query Commerce products? Any examples/documentation online?
  • when can we expect CUD for products at least?
Was this page helpful?
0 / 5 - 0 ratings

Related issues

palomamtnez picture palomamtnez  路  5Comments

AugustMiller picture AugustMiller  路  4Comments

sjcallender picture sjcallender  路  6Comments

Anubarak picture Anubarak  路  3Comments

lazlo-bonin picture lazlo-bonin  路  5Comments