2023-07-23 15:08:43 +00:00
|
|
|
import { gql } from 'graphql-tag'
|
2022-06-10 19:20:33 +00:00
|
|
|
|
2023-05-17 22:56:34 +00:00
|
|
|
export default gql`
|
2022-06-24 15:38:00 +00:00
|
|
|
type NameValue {
|
|
|
|
name: String!
|
2023-08-14 20:36:54 +00:00
|
|
|
value: Float!
|
2022-06-24 15:38:00 +00:00
|
|
|
}
|
|
|
|
|
2023-05-18 23:41:56 +00:00
|
|
|
extend type Query {
|
2023-11-09 00:15:36 +00:00
|
|
|
registrationGrowth(when: String, from: String, to: String): [TimeData!]!
|
|
|
|
itemGrowth(when: String, from: String, to: String): [TimeData!]!
|
|
|
|
spendingGrowth(when: String, from: String, to: String): [TimeData!]!
|
|
|
|
spenderGrowth(when: String, from: String, to: String): [TimeData!]!
|
|
|
|
stackingGrowth(when: String, from: String, to: String): [TimeData!]!
|
|
|
|
stackerGrowth(when: String, from: String, to: String): [TimeData!]!
|
2023-05-18 23:41:56 +00:00
|
|
|
}
|
|
|
|
|
2022-12-01 21:31:04 +00:00
|
|
|
type TimeData {
|
2023-07-27 00:18:42 +00:00
|
|
|
time: Date!
|
2022-12-01 21:31:04 +00:00
|
|
|
data: [NameValue!]!
|
2022-06-24 15:38:00 +00:00
|
|
|
}
|
2022-06-10 19:20:33 +00:00
|
|
|
`
|