DEV Community

Discussion on: "GraphQL vs REST" is ill-typed

Collapse
 
therealkevinard profile image
Kevin Ard

A secret strength of gql is how its resolvers can slide between user and backend - even if backend is traditional rest endpoints. So a field can resolve by a db call, or by a call to your (or someone else's) rest api.

Given that: it's not really a question of cost in maintaining two ways. GQL is basically a noop passthrough. The question is where to spend your time. Migrate legacy rest to gql, or keep maintaining rest as is.

GQL, in this case, is a non-issue.