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
    }
    userOrgs{
      id
      userId
      externalUserId
      organizationId
      organization{
        id
        handle
        name
        jwtIssuerDomain
        afterPaymentTransferSuspendTime
        buyNowInvoiceExpiryMins
      }
      kycStatus
      role
      bidAllowed
      username
      avatar
      settings
    }
  }
}

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]"
      },
      "userOrgs": [
        {
          "id": "2c0f99a0-3ff3-4633-80ac-981d66f3e10e",
          "userId": "e1836faf-3c5c-4470-9096-24c6c4f4d400",
          "externalUserId": "",
          "organizationId": "1a3b55cc-6474-407a-8d81-6a715991e2fb",
          "organization": {
            "id": "1a3b55cc-6474-407a-8d81-6a715991e2fb",
            "handle": "handle2",
            "name": "org2",
            "jwtIssuerDomain": "",
            "afterPaymentTransferSuspendTime": 0,
            "buyNowInvoiceExpiryMins": 0
          },
          "kycStatus": "None",
          "role": "Admin",
          "bidAllowed": false,
          "username": null,
          "avatar": null,
          "settings": null
        },
        {
          "id": "cdf77bbe-1e6b-4245-8f48-6de83afba2a8",
          "userId": "e1836faf-3c5c-4470-9096-24c6c4f4d400",
          "externalUserId": "",
          "organizationId": "8fe4b701-9afe-4dad-81eb-d97421996a00",
          "organization": {
            "id": "8fe4b701-9afe-4dad-81eb-d97421996a00",
            "handle": "metaverse",
            "name": "metaverse",
            "jwtIssuerDomain": "",
            "afterPaymentTransferSuspendTime": 0,
            "buyNowInvoiceExpiryMins": 0
          },
          "kycStatus": "None",
          "role": "User",
          "bidAllowed": false,
          "username": null,
          "avatar": null,
          "settings": null
        },
        {
          "id": "35e81a4b-f6d4-414d-a1c6-175b41c23017",
          "userId": "e1836faf-3c5c-4470-9096-24c6c4f4d400",
          "externalUserId": "google-oauth2|104043476914695308635",
          "organizationId": "a1dc174d-abf4-47d3-be3c-9281c6eba456",
          "organization": {
            "id": "a1dc174d-abf4-47d3-be3c-9281c6eba456",
            "handle": "metaverso",
            "name": "metaverso",
            "jwtIssuerDomain": "https://mojito-metaverso.us.auth0.com/",
            "afterPaymentTransferSuspendTime": 5,
            "buyNowInvoiceExpiryMins": 0
          },
          "kycStatus": "None",
          "role": "Admin",
          "bidAllowed": false,
          "username": null,
          "avatar": "https://lh3.googleusercontent.com/a/AATXAJxiEK6sUyCsLHsKANYwZ5Hc135xS2Tf4OvguTSe=s96-c",
          "settings": null
        },
        {
          "id": "811acc14-6546-45c4-bf5e-95e10826f711",
          "userId": "e1836faf-3c5c-4470-9096-24c6c4f4d400",
          "externalUserId": "",
          "organizationId": "7b32be5b-bd48-428b-b079-f83016516dbf",
          "organization": {
            "id": "7b32be5b-bd48-428b-b079-f83016516dbf",
            "handle": "Cayotest",
            "name": "Cayotest",
            "jwtIssuerDomain": "",
            "afterPaymentTransferSuspendTime": 0,
            "buyNowInvoiceExpiryMins": 0
          },
          "kycStatus": "None",
          "role": "User",
          "bidAllowed": false,
          "username": null,
          "avatar": null,
          "settings": null
        },
        {
          "id": "b134deaa-2c6b-410b-a20c-988a0b69d678",
          "userId": "e1836faf-3c5c-4470-9096-24c6c4f4d400",
          "externalUserId": "",
          "organizationId": "004e3bf7-16bf-457c-a889-c187879eb8fb",
          "organization": {
            "id": "004e3bf7-16bf-457c-a889-c187879eb8fb",
            "handle": "Cayotest2",
            "name": "Cayotest2",
            "jwtIssuerDomain": "",
            "afterPaymentTransferSuspendTime": 0,
            "buyNowInvoiceExpiryMins": 0
          },
          "kycStatus": "None",
          "role": "Admin",
          "bidAllowed": false,
          "username": null,
          "avatar": null,
          "settings": null
        },
        {
          "id": "06c41d33-7fef-4b84-8fd4-541131dd1885",
          "userId": "e1836faf-3c5c-4470-9096-24c6c4f4d400",
          "externalUserId": "google-oauth2|104043476914695308635",
          "organizationId": "8c052075-c1eb-45f2-aa81-6fce8af830ac",
          "organization": {
            "id": "8c052075-c1eb-45f2-aa81-6fce8af830ac",
            "handle": "mint-demo",
            "name": "Mint Demo",
            "jwtIssuerDomain": "",
            "afterPaymentTransferSuspendTime": 0,
            "buyNowInvoiceExpiryMins": 0
          },
          "kycStatus": "None",
          "role": "Admin",
          "bidAllowed": false,
          "username": null,
          "avatar": null,
          "settings": null
        },
        {
          "id": "44566aa9-9df2-4659-9de6-6620b21b196b",
          "userId": "e1836faf-3c5c-4470-9096-24c6c4f4d400",
          "externalUserId": "",
          "organizationId": "c702bf39-03c5-4722-8be7-192f44693664",
          "organization": {
            "id": "c702bf39-03c5-4722-8be7-192f44693664",
            "handle": "Test3",
            "name": "test1",
            "jwtIssuerDomain": "",
            "afterPaymentTransferSuspendTime": 0,
            "buyNowInvoiceExpiryMins": 0
          },
          "kycStatus": "None",
          "role": "Admin",
          "bidAllowed": false,
          "username": null,
          "avatar": null,
          "settings": null
        },
        {
          "id": "2858483e-b2ca-4440-9694-c521c2023d01",
          "userId": "e1836faf-3c5c-4470-9096-24c6c4f4d400",
          "externalUserId": "",
          "organizationId": "2800cc79-fe28-4454-923c-37d7c5c0338d",
          "organization": {
            "id": "2800cc79-fe28-4454-923c-37d7c5c0338d",
            "handle": "Mymtv",
            "name": "My Metaverse",
            "jwtIssuerDomain": "",
            "afterPaymentTransferSuspendTime": 0,
            "buyNowInvoiceExpiryMins": 0
          },
          "kycStatus": "None",
          "role": "Admin",
          "bidAllowed": false,
          "username": null,
          "avatar": null,
          "settings": null
        }
      ]
    }
  }
}

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: