gql-updates
This commit is contained in:
parent
46810edaae
commit
6dcc4f37d3
|
@ -8,9 +8,9 @@ export default gql`
|
||||||
id
|
id
|
||||||
body
|
body
|
||||||
author
|
author
|
||||||
createdAt
|
created_at
|
||||||
replyTo
|
reply_to
|
||||||
updatedAt
|
updated_at
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
9
src/graphql/mutation/mark-as-read.ts
Normal file
9
src/graphql/mutation/mark-as-read.ts
Normal file
|
@ -0,0 +1,9 @@
|
||||||
|
import { gql } from '@urql/core'
|
||||||
|
|
||||||
|
export default gql`
|
||||||
|
mutation MarkAsReadMutation($message_id: Int!, $chat_id: String!) {
|
||||||
|
markAsRead(message_id: $message_id, chat_id: $chat_id) {
|
||||||
|
error
|
||||||
|
}
|
||||||
|
}
|
||||||
|
`
|
|
@ -8,9 +8,9 @@ export default gql`
|
||||||
author
|
author
|
||||||
body
|
body
|
||||||
replyTo
|
replyTo
|
||||||
createdAt
|
created_at
|
||||||
id
|
id
|
||||||
updatedAt
|
updated_at
|
||||||
replyTo
|
replyTo
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user