g
Size: a a a
g
EA
AB
KN
U
U
NK
A
U
ИИ
S
writeFragment
.const fragment = apolloClient.readFragment({
id: postId,
fragment: gql`
fragment comments on PostType {
comments {
id
text
__typename
}
}
`
}
apolloClient.writeFragment({
id: postId,
frargment: // Aналогично
data: {
comments: [...fragment.comments, newComment]
}
})
EM
S
S
EM
EM
EM