Replace all writeData occurrences with writeQuery/writeFragment
As explained on https://gitlab.com/groups/gitlab-org/-/epics/3821, in order to migrate to Apollo Client v3, we need to change all `writeData` methods to be `writeQuery` or `writeFragment`. `writeData` is deprecated on version 3.0
Files that need refactoring:
- `app/assets/javascripts/alert_management/details.js`
- `app/assets/javascripts/design_management/index.js`
- `app/assets/javascripts/design_management_new/index.js`
- `app/assets/javascripts/repository/index.js`
- `app/assets/javascripts/static_site_editor/graphql/index.js`
We would need also change the development guidelines:
- `doc/development/fe_guide/graphql.md`
epic