guesstimate/client/src/gql/fragments/project.ts

41 lines
532 B
TypeScript

import { gql } from '@apollo/client';
export const FRAGMENT_FULL_TASK = gql`
fragment FullTask on Task {
id
label
category {
id
label
}
estimations {
optimistic
likely
pessimistic
}
}
`;
export const FRAGMENT_FULL_PROJECT = gql`
fragment FullProject on Project {
id
title
taskCategories {
id
label
costPerTimeUnit
}
tasks {
...FullTask
}
params {
timeUnit {
label
acronym
}
currency
hideFinancialPreviewOnPrint
}
}
${FRAGMENT_FULL_TASK}
`