Commit a753c4fd authored by Emily Ring's avatar Emily Ring

Replace writeData method with writeQuery

parent 5f5ff212
import Agents from './components/agents.vue'; import Agents from './components/agents.vue';
import createDefaultClient from '~/lib/graphql'; import createDefaultClient from '~/lib/graphql';
import getAgentsQuery from './graphql/queries/get_agents.query.graphql';
export default (Vue, VueApollo) => { export default (Vue, VueApollo) => {
const el = document.querySelector('#js-cluster-agents-list'); const el = document.querySelector('#js-cluster-agents-list');
...@@ -10,7 +11,8 @@ export default (Vue, VueApollo) => { ...@@ -10,7 +11,8 @@ export default (Vue, VueApollo) => {
const defaultClient = createDefaultClient(); const defaultClient = createDefaultClient();
defaultClient.cache.writeData({ defaultClient.cache.writeQuery({
query: getAgentsQuery,
/* eslint-disable @gitlab/require-i18n-strings */ /* eslint-disable @gitlab/require-i18n-strings */
data: { data: {
project: { 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