Added query to graphql types.
This commit is contained in:
@@ -9,27 +9,28 @@ const typeDefs = /* GraphQL */ `
|
|||||||
getTodayStats: DailyStats!
|
getTodayStats: DailyStats!
|
||||||
getStatsRange(startDate: Date, endDate: Date): [DailyStats]
|
getStatsRange(startDate: Date, endDate: Date): [DailyStats]
|
||||||
getTotalStats: TotalStats!
|
getTotalStats: TotalStats!
|
||||||
|
getGroupStats(groupID: BigInt!): Groups
|
||||||
}
|
}
|
||||||
type Mutation {
|
type Mutation {
|
||||||
init(mutationKey: String): String
|
init(mutationKey: String): String!
|
||||||
cronJob(mutationKey: String): TotalStats
|
cronJob(mutationKey: String): TotalStats!
|
||||||
addGroup(
|
addGroup(
|
||||||
groupID: BigInt!
|
groupID: BigInt!
|
||||||
groupName: String!
|
groupName: String!
|
||||||
groupUsername: String
|
groupUsername: String
|
||||||
mutationKey: String
|
mutationKey: String
|
||||||
): Groups
|
): Groups!
|
||||||
incrementGroup(
|
incrementGroup(
|
||||||
groupID: BigInt!
|
groupID: BigInt!
|
||||||
linksDeleted: Int!
|
linksDeleted: Int!
|
||||||
mutationKey: String
|
mutationKey: String
|
||||||
): Groups
|
): Groups!
|
||||||
increment(
|
increment(
|
||||||
link: Boolean
|
link: Boolean
|
||||||
command: Boolean
|
command: Boolean
|
||||||
trigger: Boolean
|
trigger: Boolean
|
||||||
mutationKey: String
|
mutationKey: String
|
||||||
): DailyStats
|
): DailyStats!
|
||||||
}
|
}
|
||||||
|
|
||||||
type Groups {
|
type Groups {
|
||||||
|
|||||||
Reference in New Issue
Block a user