Files
bodyshop/client/src/graphql/messages.queries.js
2021-12-08 12:38:26 -08:00

17 lines
367 B
JavaScript

import { gql } from "@apollo/client";
export const MARK_MESSAGES_AS_READ_BY_CONVERSATION = gql`
mutation MARK_MESSAGES_AS_READ_BY_CONVERSATION($conversationId: uuid) {
update_messages(
where: { conversationid: { _eq: $conversationId } }
_set: { read: true }
) {
returning {
id
read
isoutbound
}
}
}
`;