Generate GraphQL API
Current User Info
Queries
-
me: User!
-
myProfile: UserProfile!
-
myBadges: [Badge]!
-
myRedeemables: [Redeemable]!
Badges
Queries
-
badges(): [Badge]!
-
badge(id: ID!): Badge!
Mutations
-
createBadge(input: BadgeInput!): Badge!
-
updateBadge(input: BadgeInput!): Badge!
Redeemables
Queries
-
redeemables(): [Redeemable]!
-
redeemable(id: ID!): Redeemable!
Mutations
-
createRedeemable(input: RedeemableInput!): Redeemable!
-
updateRedeemable(input: RedeemableInput!): Redeemable!
Reports
Queries
-
reports(): [Report]!
-
report(id: ID!): Report!
Mutations
-
createReport(input: ReportInput!): Report!
-
updateReport(input: ReportInput!): Report!
Users
Queries
-
users(): [User]!
-
user(id: ID!): User!
Mutations
-
createUser(input: UserInput!): User!
-
updateUser(input: UserInput!): User!