ich habe die folgende AbfrageWarum wird apollo store nicht aktualisiert?
const ITEM_COMMENTS_QUERY = gql`
query Search($id: UUID, $per_page: Int) {
item(id: $id) {
id
comments(page: 1, per_page: $per_page) {
edges {
id
author {
id
first_name
last_name
}
content
}
total_count
}
}
}
`;
und die folgende Mutation
const CREATE_COMMENT_MUTATION = gql`
mutation create_comment($id: UUID!, $content: String!) {
create_comment(id: $id, content: $content, type: COMMENT_TYPE_ITEM) {
id
... on ItemComment {
item {
id
comments(page: 1, per_page: 100) {
edges {
id
author {
id
first_name
last_name
}
content
}
}
}
}
}
}
`;
und die Reaktion ist richtig, doch apollo Speicher nicht aktualisiert. (Ich habe dataIdFromObject: elm => elm.id
)