Commit 5eee35fe authored by Olena Horal-Koretska's avatar Olena Horal-Koretska

Merge branch '258788-replace-writeData' into 'master'

Replace writeData method with writeQuery

Closes #258788

See merge request gitlab-org/gitlab!44059
parents c260eed3 a753c4fd
import Agents from './components/agents.vue';
import createDefaultClient from '~/lib/graphql';
import getAgentsQuery from './graphql/queries/get_agents.query.graphql';
export default (Vue, VueApollo) => {
const el = document.querySelector('#js-cluster-agents-list');
......@@ -10,7 +11,8 @@ export default (Vue, VueApollo) => {
const defaultClient = createDefaultClient();
defaultClient.cache.writeData({
defaultClient.cache.writeQuery({
query: getAgentsQuery,
/* eslint-disable @gitlab/require-i18n-strings */
data: {
project: {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment