BOD-14 Added virtualization for messages with known bug. Added messages geting marked as read.
This commit is contained in:
14
client/src/graphql/messages.queries.js
Normal file
14
client/src/graphql/messages.queries.js
Normal file
@@ -0,0 +1,14 @@
|
||||
import { gql } from "apollo-boost";
|
||||
|
||||
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
|
||||
}
|
||||
}
|
||||
}
|
||||
`;
|
||||
Reference in New Issue
Block a user