|
|
|
|
|
by sahrizv
3447 days ago
|
|
Agreed on all counts. However, I was more focused on the comparison with building REST APIs in Ruby.
I wondered if using Absinthe to wire up all the GraphQL schemas and resolvers was a better experience in itself compared to building APIs the traditional way. Or maybe it's a tradeoff which resolves positively in favour of GraphQL when a more expressive API is required in contrast to traditional REST when a limited API is required. An "expressive" API as used above can be roughly understood as one with relatively large number of unique API endpoints. |
|
Wrapping it all in Absinthe has been amazing for productivity once I got over the initial hump of getting my head around how it all fits together. Being able to quickly extract things like `resolve find_by_id(App.ModelName)` is incredibly refreshing, and there's very little messing around with data being provided by the client.