why does Any Forums shit on this so much?
its bretty gud t b h
Why does Any Forums shit on this so much?
do you have thousands of microservices and billions of different data requests by each?
No? Then shut the fuck up and upgrade to http3.
Client-centered and json response a shit.
>easier to maintain an api
>easier to document an api
>easier to generate clients for other services to use your api
its just better
>normal rest api
GET /api/users/12345
>graphql api
POST *100 lines of gql bullshit*
graphql is how I thought servers worked before I learned about it.
its probably the only good thing Facebook has made
>Client-centered and json response a shit
why
>POST *100 lines of gql bullshit*
POST getUser { User(id: 12345) { /* fields I want */ } }
i want all the fields, just give me the whole object
no, i'm not going to write 100 lines to achieve this
>i want all the fields
User(id: 12345) { ...UserFieldsFragment }
I had to deal with it when a client gave us a mobile app to maintain and make evolve. To me it was just an extra layer, fucking useless. So we just ended up removing it and make direct calls to the API.
I don't really know what's the purpose of this, even in the case of microservice architecture. I could just integrate this lawyer into a back end api.