2025-06-14 20:57:24 +00:00
|
|
|
import { gql } from '@apollo/client';
|
|
|
|
|
|
|
|
export const PRINT_TASK = gql`
|
|
|
|
mutation PrintTask($id: ID!, $userId: ID!) {
|
|
|
|
printTask(id: $id, userId: $userId) {
|
|
|
|
id
|
2025-06-14 21:09:21 +00:00
|
|
|
printCount
|
|
|
|
lastPrintedAt
|
2025-06-14 20:57:24 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
`;
|
|
|
|
|
|
|
|
export const PRINT_STEP = gql`
|
|
|
|
mutation PrintStep($id: ID!, $userId: ID!) {
|
|
|
|
printStep(id: $id, userId: $userId) {
|
|
|
|
id
|
2025-06-14 21:09:21 +00:00
|
|
|
printCount
|
|
|
|
lastPrintedAt
|
2025-06-14 20:57:24 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
`;
|
|
|
|
|
|
|
|
export const CREATE_NOTE = gql`
|
|
|
|
mutation CreateNote($content: String!, $stepId: ID!, $userId: ID!) {
|
|
|
|
createNote(content: $content, stepId: $stepId, userId: $userId) {
|
|
|
|
id
|
|
|
|
content
|
2025-06-14 21:09:21 +00:00
|
|
|
createdAt
|
2025-06-14 20:57:24 +00:00
|
|
|
user {
|
|
|
|
id
|
|
|
|
name
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
`;
|