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

27 lines
437 B
TypeScript
Raw Permalink Normal View History

2023-07-17 12:23:12 +00:00
import { gql } from 'graphql-request';
export const getTicketArticlesQuery = gql`
query getTicketArticles($ticketId: ID!) {
ticketArticles(ticket: { ticketId: $ticketId }) {
edges {
node {
id
2023-11-22 11:11:28 +01:00
bodyWithUrls
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
}
}
}
}
`;