Commit a753c4fd authored by Emily Ring's avatar Emily Ring

Replace writeData method with writeQuery

parent 5f5ff212
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