Add more graphql support to Link
This commit is contained in:
parent
d7f8c87ccb
commit
60f6061d49
14 changed files with 251 additions and 159 deletions
40
apps/link/graphql/getTicketQuery.ts
Normal file
40
apps/link/graphql/getTicketQuery.ts
Normal file
|
|
@ -0,0 +1,40 @@
|
|||
import { gql } from 'graphql-request';
|
||||
|
||||
export const getTicketQuery = gql`
|
||||
query getTicket($ticketId: ID!) {
|
||||
ticket(ticket: { ticketId: $ticketId }) {
|
||||
id
|
||||
internalId
|
||||
title
|
||||
note
|
||||
number
|
||||
createdAt
|
||||
updatedAt
|
||||
closeAt
|
||||
tags
|
||||
state {
|
||||
id
|
||||
name
|
||||
}
|
||||
owner {
|
||||
id
|
||||
email
|
||||
}
|
||||
articles {
|
||||
edges {
|
||||
node {
|
||||
id
|
||||
body
|
||||
internal
|
||||
type {
|
||||
name
|
||||
}
|
||||
sender {
|
||||
name
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
`;
|
||||
Loading…
Add table
Add a link
Reference in a new issue