type Query { User(id: Int!): User! } type Mutation { shadowHideBadges(userId: Int!): [Badge]! shadowHideBadge(id: Int!, state: Boolean): [Badge]! hideBadge(category: String): [Badge]! updateBadge( id: Int post: String image: String description: String time: String category: String hidden: Boolean source: String designer: String ): [Badge]! deleteBadge(id: Int!): [Badge]! pruneUserBadges: [Badge]! } type User { id: Int! badges: [Badge]! } type Badge { post: String image: String description: String id: Int time: String category: String hidden: Boolean source: String designer: String shadow_hidden: Boolean click_count: Int }