generated from pascalmartineau/wp-skeleton
feat: Initial user switching mutations
This commit is contained in:
17
wp-content/themes/ccat/server/graphql/userSwitchTo.gql
Normal file
17
wp-content/themes/ccat/server/graphql/userSwitchTo.gql
Normal file
@@ -0,0 +1,17 @@
|
||||
mutation userSwitchTo($userId: ID!) {
|
||||
userSwitchTo(input: { userId: $userId }) {
|
||||
authToken
|
||||
refreshToken
|
||||
user {
|
||||
id
|
||||
databaseId
|
||||
username
|
||||
email
|
||||
firstName
|
||||
lastName
|
||||
avatar {
|
||||
url
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user