3a56782572
* add custom range option to top items page * add custom range option to profile page * add date filter option to chart pages * cleanup * fix x-axis date labels * date picker improvements * enhancements to custom date selection * remove unneeded condition --------- Co-authored-by: rleed <rleed1@pm.me> Co-authored-by: Keyan <34140557+huumn@users.noreply.github.com>
23 lines
642 B
JavaScript
23 lines
642 B
JavaScript
import { gql } from 'graphql-tag'
|
|
|
|
export default gql`
|
|
type NameValue {
|
|
name: String!
|
|
value: Float!
|
|
}
|
|
|
|
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!]!
|
|
}
|
|
|
|
type TimeData {
|
|
time: Date!
|
|
data: [NameValue!]!
|
|
}
|
|
`
|