p
Size: a a a
p
DS
ن
А
EZ
<Mutation
mutation={ADD_TEAM}
update={(cache, res) => {
const GET_TEAMS = gql`
query {
team {
getList {
list {
id
title
logo {
publicLink
}
}
}
}
}
`
try {
const data = cache.readQuery({ query: GET_TEAMS });
data.team.getList.list.push(res.data.team.add);
cache.writeQuery({
query: GET_TEAMS,
data
});
} catch (error) {
console.error(error);
}
}}
>
EZ
K
EZ
K
EZ
Invariant Violation: Expecting a parsed GraphQL document. Perhaps you need to wrap the query string in a "gql" tag?
K
V
<Mutation
mutation={ADD_TEAM}
update={(cache, res) => {
const GET_TEAMS = gql`
query {
team {
getList {
list {
id
title
logo {
publicLink
}
}
}
}
}
`
try {
const data = cache.readQuery({ query: GET_TEAMS });
data.team.getList.list.push(res.data.team.add);
cache.writeQuery({
query: GET_TEAMS,
data
});
} catch (error) {
console.error(error);
}
}}
>
Д
Д
S
EM
EZ
VA
VA