-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
william341
committed
Apr 29, 2021
1 parent
e93f648
commit 708418f
Showing
4 changed files
with
71 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
import gql from "graphql-tag"; | ||
import IPlanet from "../../../types/IPlanet"; | ||
|
||
export interface IToggleBanMutationData { | ||
toggleBan: IPlanet | ||
} | ||
|
||
const toggleBanMutation = gql` | ||
mutation ToggleBan($planetId: ID!, $userId: ID!) { | ||
toggleBan(planetId: $planetId, userId: $userId) { | ||
id | ||
banned | ||
} | ||
} | ||
`; | ||
|
||
export default toggleBanMutation; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
import gql from "graphql-tag"; | ||
import IUser from "../../../types/IUser"; | ||
|
||
export interface IBanUserMutationData { | ||
banUser: IUser | ||
} | ||
|
||
const banUserMutation = gql` | ||
mutation BanUser($userId: ID!) { | ||
banUser(userId: $userId) { | ||
id | ||
banned | ||
} | ||
} | ||
`; | ||
|
||
export default banUserMutation; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters