Re:GraphQL Query Generator
by hp_hovercraft on Wednesday July 22, 2020 @10:12AM
(#23917178)
You're not alone. I recently took over an Elixir application that uses Apollo/GraphQL. To say the least, making a simple change requires traversing and updating a bunch of code in several areas. For example, if I want to add a single field in an endpoint: Update Apollo, update the GraphQL schema, update the resolvers, update types, update the schema. Makes me wonder what the advantage is. Would just love to go back to a basic REST implementation. Elixir's routing pipeline handles that so well.
[ Parent
| on HN ]
Interesting. We're using apollo-server on top of an existing REST api and to add a single field our process is:
- update the graphql schema
- implement any resolvers
and we're done. More things happen in the background, but a developer doesn't have to do anything. It's all auto generated when the file is saved or a build happens.