organizationByID

This query loads organization information based on the organization ID.

General pattern

query{
    organizationByID(id: "organization-id"){
    field_1
    field_2 {
       nested_field_1
       ...
    }
  }
}

Sample query

query{
  organizationByID(id:"a1dc174d-abf4-47d3-be3c-9281c6eba456"){
    id
    handle
    name
    jwtIssuerDomain
    members(filter:{
      externalUserId:"auth0|620565023dbc5d0068b30378"
    }
    offset:0
    limit:4){
      id
      userId
      organizationId
      userId
      role
    }
    marketplaces{
      id
      name
      organizationID
      theme
    }
    wallets{
      id
      name
      parentType
      parentID
    }
    nftContracts{
      id
      nftContractType{
        id
        name
      }
      name
      symbol
    }
  }
}

Sample response

{
  "data": {
    "organizationByID": {
      "id": "a1dc174d-abf4-47d3-be3c-9281c6eba456",
      "handle": "metaverso",
      "name": "metaverso",
      "jwtIssuerDomain": "https://mojito-metaverso.us.auth0.com/",
      "members": [
        {
          "id": "280ceb90-51aa-471c-b024-756b9e3f80c1",
          "userId": "ebf1200b-e4f0-4944-9f46-42b9ecb30454",
          "organizationId": "a1dc174d-abf4-47d3-be3c-9281c6eba456",
          "role": "EndUser"
        }
      ],
      "marketplaces": [
        {
          "id": "97a34f91-a6b5-4bab-b862-6a4acdfd17c6",
          "name": "www",
          "organizationID": "a1dc174d-abf4-47d3-be3c-9281c6eba456",
          "theme": ""
        },
        {
          "id": "2d1b56d8-076d-4d28-ad64-493d5e9988fc",
          "name": "test",
          "organizationID": "a1dc174d-abf4-47d3-be3c-9281c6eba456",
          "theme": ""
        },
        {
          "id": "ebd2bab6-5c5c-44ae-9e68-29ea1f93acdb",
          "name": "port",
          "organizationID": "a1dc174d-abf4-47d3-be3c-9281c6eba456",
          "theme": ""
        },
        {
          "id": "d15b1b02-3c87-434d-a7fb-004b27415fbc",
          "name": "metaverso",
          "organizationID": "a1dc174d-abf4-47d3-be3c-9281c6eba456",
          "theme": "dark"
        }
      ],
      "wallets": [
        {
          "id": "c9b0e4dd-9403-458c-985d-ce8dd3c57b22",
          "name": "Wallet_1",
          "parentType": "organization",
          "parentID": "a1dc174d-abf4-47d3-be3c-9281c6eba456"
        },
        {
          "id": "79a18c5c-15ee-4451-b670-e7fde42223db",
          "name": "abcd",
          "parentType": "organization",
          "parentID": "a1dc174d-abf4-47d3-be3c-9281c6eba456"
        },
        {
          "id": "106745e4-0a6f-4159-89af-5c614ed7d699",
          "name": "123213213",
          "parentType": "organization",
          "parentID": "a1dc174d-abf4-47d3-be3c-9281c6eba456"
        },
        {
          "id": "b9afeceb-0178-4926-bdd9-462eb1616bb9",
          "name": "Test",
          "parentType": "organization",
          "parentID": "a1dc174d-abf4-47d3-be3c-9281c6eba456"
        },
        {
          "id": "4da9ac9c-4b9a-4c3b-b95e-cce96eca0d34",
          "name": "Wallet_B",
          "parentType": "organization",
          "parentID": "a1dc174d-abf4-47d3-be3c-9281c6eba456"
        }
      ],
      "nftContracts": [
        {
          "id": "666505bb-9f77-4b39-b2e2-ac903c7515fd",
          "nftContractType": {
            "id": "dac53439-6f45-4874-b499-a981b63c093d",
            "name": "ERC721Creator"
          },
          "name": "",
          "symbol": ""
        },
        {
          "id": "629a4125-b547-427e-8f8c-ae9c62fa4dbe",
          "nftContractType": {
            "id": "dac53439-6f45-4874-b499-a981b63c093d",
            "name": "ERC721Creator"
          },
          "name": "",
          "symbol": ""
        },
        {
          "id": "64f98a68-378f-44d6-89f7-9aaaeb22abfb",
          "nftContractType": {
            "id": "19342917-e98a-4cb1-9f1c-904331338d49",
            "name": "Standard"
          },
          "name": "",
          "symbol": ""
        },
        {
          "id": "de828c4f-ef34-41be-9491-8447d5fd50f1",
          "nftContractType": {
            "id": "dac53439-6f45-4874-b499-a981b63c093d",
            "name": "ERC721Creator"
          },
          "name": "",
          "symbol": ""
        },
        {
          "id": "edaca89f-7b70-4666-9692-123ef20a2d1d",
          "nftContractType": {
            "id": "dac53439-6f45-4874-b499-a981b63c093d",
            "name": "ERC721Creator"
          },
          "name": "",
          "symbol": ""
        },
        {
          "id": "bb701729-d5a9-44a3-8337-3ca413f1c5d8",
          "nftContractType": {
            "id": "dac53439-6f45-4874-b499-a981b63c093d",
            "name": "ERC721Creator"
          },
          "name": "",
          "symbol": ""
        },
        {
          "id": "5f256d06-d155-4119-8e0d-b6ea902fda36",
          "nftContractType": {
            "id": "dac53439-6f45-4874-b499-a981b63c093d",
            "name": "ERC721Creator"
          },
          "name": "",
          "symbol": ""
        },
        {
          "id": "0b3e0d98-5685-434b-8d1e-21ec20153205",
          "nftContractType": {
            "id": "dac53439-6f45-4874-b499-a981b63c093d",
            "name": "ERC721Creator"
          },
          "name": "",
          "symbol": ""
        },
        {
          "id": "27b7ebc9-9661-4b17-bc72-a6e6d28fc712",
          "nftContractType": {
            "id": "dac53439-6f45-4874-b499-a981b63c093d",
            "name": "ERC721Creator"
          },
          "name": "",
          "symbol": ""
        },
        {
          "id": "f185fe2e-3e67-4a79-ae02-71036e942353",
          "nftContractType": {
            "id": "dac53439-6f45-4874-b499-a981b63c093d",
            "name": "ERC721Creator"
          },
          "name": "",
          "symbol": ""
        },
        {
          "id": "e0b0f814-4627-4fff-a373-1795ea85fb8e",
          "nftContractType": {
            "id": "dac53439-6f45-4874-b499-a981b63c093d",
            "name": "ERC721Creator"
          },
          "name": "",
          "symbol": ""
        },
        {
          "id": "7141bf19-7254-45bf-8960-8b05ddbb0323",
          "nftContractType": {
            "id": "dac53439-6f45-4874-b499-a981b63c093d",
            "name": "ERC721Creator"
          },
          "name": "",
          "symbol": ""
        },
        {
          "id": "56c3c601-be35-4804-9b68-df18750222f9",
          "nftContractType": {
            "id": "dac53439-6f45-4874-b499-a981b63c093d",
            "name": "ERC721Creator"
          },
          "name": "",
          "symbol": ""
        },
        {
          "id": "643be1b5-7762-438b-91db-c27ef3a3cf41",
          "nftContractType": {
            "id": "dac53439-6f45-4874-b499-a981b63c093d",
            "name": "ERC721Creator"
          },
          "name": "",
          "symbol": ""
        },
        {
          "id": "571f8f38-00e1-4c3f-b5bb-fb9f99386e17",
          "nftContractType": {
            "id": "dac53439-6f45-4874-b499-a981b63c093d",
            "name": "ERC721Creator"
          },
          "name": "",
          "symbol": ""
        },
        {
          "id": "01c1742a-606b-4108-8ee3-58bbee4c92e5",
          "nftContractType": {
            "id": "dac53439-6f45-4874-b499-a981b63c093d",
            "name": "ERC721Creator"
          },
          "name": "",
          "symbol": ""
        },
        {
          "id": "1e1dab6c-9253-4025-b164-dfceaa2ef8a1",
          "nftContractType": {
            "id": "dac53439-6f45-4874-b499-a981b63c093d",
            "name": "ERC721Creator"
          },
          "name": "Test",
          "symbol": "BAYC"
        },
        {
          "id": "3ed8368d-9402-4055-91e3-893d9e350324",
          "nftContractType": {
            "id": "dac53439-6f45-4874-b499-a981b63c093d",
            "name": "ERC721Creator"
          },
          "name": "",
          "symbol": ""
        },
        {
          "id": "9314e8a3-445c-47a3-b8b0-04960ca823a0",
          "nftContractType": {
            "id": "dac53439-6f45-4874-b499-a981b63c093d",
            "name": "ERC721Creator"
          },
          "name": "test",
          "symbol": "fds"
        },
        {
          "id": "2b603361-8a4e-431c-a641-87cce13c97c1",
          "nftContractType": {
            "id": "dac53439-6f45-4874-b499-a981b63c093d",
            "name": "ERC721Creator"
          },
          "name": "Alec Testing",
          "symbol": "AlecTest"
        },
        {
          "id": "e34942f5-d776-4f86-a3ab-486b50afe5ba",
          "nftContractType": {
            "id": "dac53439-6f45-4874-b499-a981b63c093d",
            "name": "ERC721Creator"
          },
          "name": "",
          "symbol": ""
        },
        {
          "id": "efb64c91-3f61-4eaf-9f61-4fb23a747e21",
          "nftContractType": {
            "id": "dac53439-6f45-4874-b499-a981b63c093d",
            "name": "ERC721Creator"
          },
          "name": "test ",
          "symbol": "22222"
        },
        {
          "id": "dcd51271-5de9-43e7-99d7-2d395dc357d1",
          "nftContractType": {
            "id": "dac53439-6f45-4874-b499-a981b63c093d",
            "name": "ERC721Creator"
          },
          "name": "TEst Contract",
          "symbol": "BAYC"
        }
      ]
    }
  }
}

Arguments

Name

Type

Description

Required

id

String

The organization ID.

Yes

Fields

Name

Type

Description

Organization

Object

Contains all the information from Organization such as organization ID, the name of the organization, the organization members, marketplaces, assets, wallets, and the NFT contracts.

Example

Load the basic information of an organization using an organization ID:

Load the marketplace data of an organization using an organization ID: