markhuot / craftql

A drop-in GraphQL server for Craft CMS
Other
320 stars 53 forks source link

Question: does the plugin work with CraftCommerce? #207

Open simonfranzen opened 5 years ago

simonfranzen commented 5 years ago

Hey, I was pretty exited to see that craftCMS has a graphql adapter. We are wondering if the adapter also works for CraftCommerce.

And if not: how to implement more queries and mutations for CraftCommerce or other third party plugins?

Thanks for the response!

Great work!

markhuot commented 5 years ago

Hi Simon. Sorry, as of right now the plugin does not support Craft Commerce but it is very high on my list of additions.

simonfranzen commented 5 years ago

Thank you for the fast response. I didnt read the section Third-pary Field Support . So to answer my second question by myself: It's possible to extend the graphql API

Thank you @markhuot

mikeebee commented 5 years ago

@simonfranzen hey, did you get this up and running with Commerce ok? Wondering what kind of effort is involved and whether to move forward with this for a site I'm about to build.

simonfranzen commented 5 years ago

hey @mikeebee,

I think its possible to extend the graphql API with custom data. So it's possible to get Commerce running, but I am not sure about the effort. For our project we decided to go with Shopfiy and use their GraphQL API. So our page is pretty simple:

We also made a small prototype with gatsby.js.

mikeebee commented 5 years ago

@simonfranzen thanks so much for following up. I'm locked into Craft for this site with this but thanks for the outline of your solution!

mikejdegroot commented 4 years ago

@mikeebee Hi mate, did you find a solution for using craft commerce with an API? We need to be able to do the checkout process and register users with our headless craft setup