link-stack/apps/link/app/_graphql/getTicketArticlesQuery.ts
2024-10-18 10:12:27 +02:00

27 lines
457 B
TypeScript

import { gql } from "graphql-request";
export const getTicketArticlesQuery = gql`
query getTicketArticles($ticketId: ID!) {
ticketArticles(ticket: { ticketId: $ticketId }) {
edges {
node {
id
bodyWithUrls
contentType
internal
type {
name
}
sender {
name
}
from {
parsed {
emailAddress
}
}
}
}
}
}
`;