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

28 lines
457 B
TypeScript
Raw Normal View History

2024-10-17 21:25:12 +02:00
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
2024-10-17 21:25:12 +02:00
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
}
}
}
}
`;