logout
Overview
This mutation clears the current login session for the current user.
Special Considerations
- Mutation does not take any inputs
Inputs
N/A
Returns
Promise<SuccessResult>
A promise containing the following object / data:
message: string
Example
Running this mutation:
mutation {
logout {
message
}
}
Gives us:
{
"data": {
"logout": {
"message": "Logged out"
}
}
}
Common Errors
N/A