ohmyform-ui/graphql/query/admin.statistic.query.ts
Michael Schramm 8d81390c83 apply eslint
2020-06-09 11:54:50 +02:00

30 lines
451 B
TypeScript

import { gql } from 'apollo-boost'
export interface AdminStatisticQueryData {
forms: {
total: number
}
submissions: {
total: number
}
users: {
total: number
}
}
export interface AdminStatisticQueryVariables {}
export const ADMIN_STATISTIC_QUERY = gql`
query {
forms: getFormStatistic {
total
}
submissions: getSubmissionStatistic {
total
}
users: getUserStatistic {
total
}
}
`