23 lines
642 B
JavaScript
Raw Normal View History

import { gql } from 'graphql-tag'
2022-06-10 14:20:33 -05:00
2023-05-17 17:56:34 -05:00
export default gql`
2022-06-24 10:38:00 -05:00
type NameValue {
name: String!
value: Float!
2022-06-24 10:38:00 -05:00
}
2023-05-18 18:41:56 -05:00
extend type Query {
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 18:41:56 -05:00
}
2022-12-01 15:31:04 -06:00
type TimeData {
2023-07-26 19:18:42 -05:00
time: Date!
2022-12-01 15:31:04 -06:00
data: [NameValue!]!
2022-06-24 10:38:00 -05:00
}
2022-06-10 14:20:33 -05:00
`