Added query for getting stats within a range.
This commit is contained in:
15
src/graphql/queries/get30DayStats.ts
Normal file
15
src/graphql/queries/get30DayStats.ts
Normal file
@@ -0,0 +1,15 @@
|
|||||||
|
import { gql } from "@urql/next";
|
||||||
|
|
||||||
|
const Get30DayStatsQuery = gql`
|
||||||
|
query get30DayStats($startDate: Date, $endDate: Date) {
|
||||||
|
getStatsRange(endDate: $startDate, startDate: $endDate) {
|
||||||
|
commandResponses
|
||||||
|
createdAt
|
||||||
|
linksDeleted
|
||||||
|
timesTriggered
|
||||||
|
updatedAt
|
||||||
|
}
|
||||||
|
}
|
||||||
|
`;
|
||||||
|
|
||||||
|
export default Get30DayStatsQuery;
|
||||||
Reference in New Issue
Block a user