|
|
|
|
|
by t_fatus
2886 days ago
|
|
I'd like to add that correctly designed resolvers allow you:
- to control very easily who can fetch what where it's fetched (permissions)
- to fetch nested data when you need it without writing serializers
- to help your frontend team find what they are looking for without asking the backend team everytime
- mutations are a huge plus when it comes to standardization of your API too FYI we're using it in production over a django backend (which comes with some drawbacks, since subscriptions == pushed updates are not perfectly implemented) with our react/apollo apps (web and native) and in my opinion the overhead lies surprisingly more in the frontend side (writing data connectors is longer, but way more explicit, than using rest queries returning json)than on the backend (where you just declare resolvers, a thing you don't even need to do in nodejs) and handle permissions. |
|
This is a piece of GraphQL I haven't been able to get my head around. Could you elaborate or point me to a good explanation of how this is implemented? Everything I found when I looked into GraphQL previously was something like "you control access to individual resources in your business layer" but never explained how.