Answer the question
In order to leave comments, you need to log in
GraphQl or Rest api for an online store?
We are planning to develop our CMS on the Laravel/React stack. I have experience with Rest api, but I see that Graphql is rapidly gaining popularity now, it allows you to make fewer requests and almost completely eliminate redux.
Who has real experience - is it worth poking into the unknown graphql or using the old-fashioned restful api?
Answer the question
In order to leave comments, you need to log in
GraphQL is not a silver bullet, it has both pros and cons. Analyze automated business processes and select the best solution for a particular case.
I didn’t write online stores, but I’ve been working closely with GraphQL for the last year - and I would take it for such a task.
They fit well on top of each other - GrapqhQL allows you to pull out any data in the form that the client needs and make it as productive as possible on the server.
If you take Apollo Client, then it will solve many problems with cache, query optimization and other things for you.
In addition, all sorts of things in the spirit of "added a field and a month later it turned out that they forgot to update the code somewhere" are immediately available, especially if you write in TS
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question