Progress
This commit is contained in:
@@ -160,6 +160,25 @@ export const QUERY_BODYSHOP = gql`
|
||||
external_id
|
||||
flat_rate
|
||||
}
|
||||
tasks {
|
||||
id
|
||||
created_at
|
||||
updated_at
|
||||
title
|
||||
description
|
||||
deleted
|
||||
deleted_at
|
||||
due_date
|
||||
created_by
|
||||
assigned_to
|
||||
completed
|
||||
completed_at
|
||||
remind_at
|
||||
priority
|
||||
jobid
|
||||
joblineid
|
||||
partsorderid
|
||||
}
|
||||
}
|
||||
}
|
||||
`;
|
||||
|
||||
39
client/src/graphql/tasks.queries.js
Normal file
39
client/src/graphql/tasks.queries.js
Normal file
@@ -0,0 +1,39 @@
|
||||
import {gql} from "@apollo/client";
|
||||
|
||||
export const QUERY_ALL_TASKS_PAGINATED = gql`
|
||||
query QUERY_ALL_TASKS_PAGINATED(
|
||||
$offset: Int
|
||||
$limit: Int
|
||||
$order: [tasks_order_by!]!
|
||||
) {
|
||||
tasks(
|
||||
offset: $offset
|
||||
limit: $limit
|
||||
order_by: $order
|
||||
) {
|
||||
id
|
||||
created_at
|
||||
updated_at
|
||||
title
|
||||
description
|
||||
deleted
|
||||
deleted_at
|
||||
due_date
|
||||
created_by
|
||||
assigned_to
|
||||
completed
|
||||
completed_at
|
||||
remind_at
|
||||
priority
|
||||
jobid
|
||||
joblineid
|
||||
partsorderid
|
||||
billid
|
||||
}
|
||||
tasks_aggregate(args: {}) {
|
||||
aggregate {
|
||||
count(distinct: true)
|
||||
}
|
||||
}
|
||||
}
|
||||
`;
|
||||
Reference in New Issue
Block a user