me

This query loads the information represented in me.

General Pattern

query{
    me(id: "UUID"){
    field_1
    field_2 {
       nested_field_1
       ...
    }
  }
}

Sample Query

query{
  me{
    id
    user{
      id
      username
      name
      email
    }
  }
}

Sample Response

{
  "data": {
    "me": {
      "id": "e1836faf-3c5c-4470-9096-24c6c4f4d400",
      "user": {
        "id": "e1836faf-3c5c-4470-9096-24c6c4f4d400",
        "username": "4a3e706f-4c19-4c60-90cc-2cb0218c223b",
        "name": "cahyo",
        "email": "[email protected]to.xyz"
      }
    }
  }
}

Arguments

Name

Type

Description

Required

Fields

Name

Type

Description

CurrentUser

Object

Contains all the information from 'CurrentUser' that includes ID, the user, the userOrgs, the apiKeys, and etc.

Example

Load the current user's basic information: