Ah, my bad. I assumed it was server-side when I saw the query directives in the first example.
You’re right that GraphQL is not a panacea and of course there are exceptions. I wasn’t intending to imply otherwise. But in my experience, shaping is not enough of an issue with GraphQL to warrant a full state management library like Redux etc. Usually, React state or Apollo’s options.prop function works great for shaping when needed.
You may have a quite different case from ours though so your mileage may vary. Thanks for chiming in.