API Stability Long-Term

The logoutOfSession() GraphQL mutation is used to log out of a user's session. This field is a beta feature.

For information on session management, see the Session management documentation page. You may also want to look at session().

Syntax

Below is the syntax for the logoutOfSession() mutation field:

graphql
logoutOfSession: boolean!

There are no special datatypes for this mutation field.

Below is an example of how this mutation field might be used:

Show:
graphql
mutation {
  logoutOfSession
}
Example Responses
Show:
json
{
  "data": {
    "logoutOfSession": true
  }
}