2023-01-13 00:05:48 +05:30
|
|
|
import workItemQuery from './graphql/work_item.query.graphql';
|
|
|
|
import workItemByIidQuery from './graphql/work_item_by_iid.query.graphql';
|
2023-03-04 22:38:38 +05:30
|
|
|
import workItemNotesIdQuery from './graphql/work_item_notes.query.graphql';
|
|
|
|
import workItemNotesByIidQuery from './graphql/work_item_notes_by_iid.query.graphql';
|
2023-01-13 00:05:48 +05:30
|
|
|
|
|
|
|
export function getWorkItemQuery(isFetchedByIid) {
|
|
|
|
return isFetchedByIid ? workItemByIidQuery : workItemQuery;
|
|
|
|
}
|
2023-03-04 22:38:38 +05:30
|
|
|
|
|
|
|
export function getWorkItemNotesQuery(isFetchedByIid) {
|
|
|
|
return isFetchedByIid ? workItemNotesByIidQuery : workItemNotesIdQuery;
|
|
|
|
}
|