cancel
Showing results for 
Search instead for 
Did you mean: 

REST vs GraphQL

REST vs GraphQL

Hi everyone,

 

I'd like to build a headless magento 2 store with nuxt.

As I understand, the GraphQL API is not production ready yet, so I thought that I would use the REST API.

 

I searched for any existing javascript wrapper for the REST API, but I only found ones that are only working server side. Is using the REST API on the frontend considered a bad practice?

 

I see a lot of people using the GraphQL API, but I don't really understand, how are they making up from the missing features?

 

Can anyone give me and advice/tips on this?

 

Thank you!

1 REPLY 1

Re: REST vs GraphQL

Hi @csanád_kiss-m 

Kindly refer below URL, it will help to use rest API  with jQuery:

https://devdocs.magento.com/guides/v2.4/get-started/rest_front.html

https://magento.stackexchange.com/questions/116030/can-i-use-magentos-rest-api-through-javascript

If issue resolve, Please click on 'Kudos' & Accept as Solution!

Problem solved? Click Accept as Solution!