Add more graphql support to Link

This commit is contained in:
Darren Clarke 2023-03-29 14:43:27 +02:00
parent d7f8c87ccb
commit 60f6061d49
14 changed files with 251 additions and 159 deletions

View 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
}
}
}
}
}
}
`;

View file

@ -0,0 +1,10 @@
import { gql } from "graphql-request";
export const updateTicketMutation = gql`
mutation UpdateTicket($ticketId: ID!, $input: TicketUpdateInput!) {
ticketUpdate(ticketId: $ticketId, input: $input) {
ticket {
id
}
}
}`;