Secured mutations with an api-key. When in production mode it should return null if an API key is not provided or is incorrect.
All checks were successful
Main / build-and-push-docker-image (20.x) (push) Successful in 5m6s
All checks were successful
Main / build-and-push-docker-image (20.x) (push) Successful in 5m6s
This commit is contained in:
@@ -11,11 +11,25 @@ const typeDefs = /* GraphQL */ `
|
||||
getTotalStats: TotalStats!
|
||||
}
|
||||
type Mutation {
|
||||
init: String!
|
||||
cronJob: TotalStats!
|
||||
addGroup(groupID: BigInt, groupName: String, groupUsername: String): Groups!
|
||||
incrementGroup(groupID: BigInt, linksDeleted: Int): Groups!
|
||||
increment(link: Boolean, command: Boolean, trigger: Boolean): DailyStats!
|
||||
init(mutationKey: String): String
|
||||
cronJob(mutationKey: String): TotalStats
|
||||
addGroup(
|
||||
groupID: BigInt!
|
||||
groupName: String!
|
||||
groupUsername: String
|
||||
mutationKey: String
|
||||
): Groups
|
||||
incrementGroup(
|
||||
groupID: BigInt!
|
||||
linksDeleted: Int!
|
||||
mutationKey: String
|
||||
): Groups
|
||||
increment(
|
||||
link: Boolean
|
||||
command: Boolean
|
||||
trigger: Boolean
|
||||
mutationKey: String
|
||||
): DailyStats
|
||||
}
|
||||
|
||||
type Groups {
|
||||
|
||||
Reference in New Issue
Block a user