link-stack/apps/link/app/_graphql/getTicketArticlesQuery.ts

28 lines
457 B
TypeScript
Raw Normal View History

import { gql } from "graphql-request";
2023-07-17 12:23:12 +00:00
export const getTicketArticlesQuery = gql`
query getTicketArticles($ticketId: ID!) {
ticketArticles(ticket: { ticketId: $ticketId }) {
edges {
node {
id
2023-11-22 11:11:28 +01:00
bodyWithUrls
contentType
2023-07-17 12:23:12 +00:00
internal
type {
name
}
sender {
name
}
2023-11-22 11:11:28 +01:00
from {
parsed {
emailAddress
}
}
2023-07-17 12:23:12 +00:00
}
}
}
}
`;