GraphQL Client: Add Apollo and use on profile settings page
Created by: umpox
This PR:
- Adds Apollo Client.
-
Addshttps://github.com/sourcegraph/sourcegraph/pull/22380typescript-react-apollo
to automatically generated typedquery
andmutation
hooks. -
Adds support and encourages writing queries inhttps://github.com/sourcegraph/sourcegraph/pull/22380.graphql
files, relying on generated code for initial logic - Updates
EditUserProfileForm
to fire mutations through Apollo and respond accordingly. - Updates
UserSettingsProfilePage
to fire queries through Apollo and demonstrate how response data can be shared across components. Also adds tests for this page as an example for mocking different requests. - Adds and updates our web 'Working with GraphQL' documentation.
This PR is structured into specific commits to make reviewing easier
closes https://github.com/sourcegraph/sourcegraph/issues/22150 closes https://github.com/sourcegraph/sourcegraph/issues/22151