feat: Initial user switching mutations

This commit is contained in:
2025-09-15 12:34:59 -04:00
parent c53fb152d4
commit 98876f23b8
8 changed files with 277 additions and 0 deletions

View File

@@ -17146,6 +17146,18 @@ type RootMutation {
"""Input for the updateUser mutation"""
input: UpdateUserInput!
): UpdateUserPayload
"""The userSwitchBack mutation"""
userSwitchBack(
"""Input for the userSwitchBack mutation"""
input: UserSwitchBackInput!
): UserSwitchBackPayload
"""The userSwitchTo mutation"""
userSwitchTo(
"""Input for the userSwitchTo mutation"""
input: UserSwitchToInput!
): UserSwitchToPayload
}
"""The root entry point into the Graph"""
@@ -24625,6 +24637,53 @@ enum UserRoleEnum {
SUBSCRIBER
}
"""Input for the userSwitchBack mutation."""
input UserSwitchBackInput {
"""
This is an ID that can be passed to a mutation by the client to track the progress of mutations and catch possible duplicate mutation submissions.
"""
clientMutationId: String
}
"""The payload for the userSwitchBack mutation."""
type UserSwitchBackPayload {
"""
If a 'clientMutationId' input is provided to the mutation, it will be returned as output on the mutation. This ID can be used by the client to track the progress of mutations and catch possible duplicate mutation submissions.
"""
clientMutationId: String
"""Whether switching back was successful"""
success: Boolean
}
"""Input for the userSwitchTo mutation."""
input UserSwitchToInput {
"""
This is an ID that can be passed to a mutation by the client to track the progress of mutations and catch possible duplicate mutation submissions.
"""
clientMutationId: String
"""The ID of the user to switch to"""
userId: ID
}
"""The payload for the userSwitchTo mutation."""
type UserSwitchToPayload {
"""JWT Token for the target user"""
authToken: String
"""
If a 'clientMutationId' input is provided to the mutation, it will be returned as output on the mutation. This ID can be used by the client to track the progress of mutations and catch possible duplicate mutation submissions.
"""
clientMutationId: String
"""JWT Refresh Token for the target user"""
refreshToken: String
"""The target user object"""
user: User
}
"""Connection between the User type and the Comment type"""
type UserToCommentConnection implements CommentConnection & Connection {
"""Edges for the UserToCommentConnection connection"""