A
A
Andrey Okhotnikov2019-04-15 18:09:57
RESTful API
Andrey Okhotnikov, 2019-04-15 18:09:57

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

3 answer(s)
S
Sergey Gornostaev, 2019-04-15
@sergey-gornostaev

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.

R
Robur, 2019-04-15
@Robur

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

V
Vitaly, 2019-04-15
@vshvydky

look in the direction of strapi.io and you may not need to develop anything. laravel seriously?

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question