complianceVesselBuildingBlocksBy

Returns compliance building blocks by vessel class and building block type.

Arguments

NameTypeDescription
inputComplianceVesselBuildingBlocksByInputFilters building blocks by vessel class and building block type

complianceVesselBuildingBlocksByFilterInput

NameTypeDescription
filterComplianceVesselBuildingBlocksByFilterInputFilters building blocks by vessel class and building block type
limitPositiveInt!The maximal number of records to return.
offsetNonNegativeInt!The number of returned records to skip from the beginning of the record list.
sortComplianceVesselBuildingBlocksByInputSortInputSorting parameters for the provided data.

Returns

NameDescription
ComplianceVesselBuildingBlocksByConnectionDetails about the building block.

ComplianceBuildingBlocksByConnection Fields

NameTypeDescription
nodesComplianceVesselActivityDetails about the building block.
totalCountNonNegativeInt!The number of nodes returned.

Example Code

Sample Query

query ComplianceVesselRiskIndicatorsBy($input: ComplianceVesselBuildingBlocksByInput!) {
  complianceVesselBuildingBlocksBy(input: $input) {
    nodes {
      program
      buildingBlock
      startDate
      endDate
      vessel {
        name
        imo
        class
        subClass
      }
      details {
        previousPortCallStartDate
        reportedDestinationAfter
        previousPort {
          properties {
            country
            name
          }
        }
      }
    }
    totalCount
  }
}

Variables

{
  "input": {
    "filter": {
      "buildingBlocks": "DARK_ACTIVITY"
      "classes": "Tanker"
    },
    "limit": 100,
    "offset": 50,
    "sort": {
      "field": "START_DATE",
      "order": "DESC"
    }
  }
}

Response

{
  "data": {
    "complianceVesselBuildingBlocksBy": {
      "nodes": [
        {
          "program": [
            "IRAN"
          ],
          "buildingBlock": "DARK_ACTIVITY",
          "startDate": "2021-07-06T15:21:32.000Z",
          "endDate": "2021-07-11T01:48:43.000Z",
          "vessel": {
            "name": "MMB1",
            "imo": 9578323,
            "class": "Tanker",
            "subClass": "Asphalt/Bitumen Tanker"
          },
          "details": {
            "previousPortCallStartDate": "2021-06-12T23:45:08.000Z",
            "reportedDestinationAfter": "MANGALORE",
            "previousPort": {
              "properties": {
                "country": "India",
                "name": "Mumbai"
              }
            }
          }
        },
        {
          "program": [
            "IRAN"
          ],
          "buildingBlock": "DARK_ACTIVITY",
          "startDate": "2021-07-06T16:00:01.000Z",
          "endDate": "2021-07-14T23:48:52.000Z",
          "vessel": {
            "name": "IRIS",
            "imo": 9247778,
            "class": "Tanker",
            "subClass": "Oil Products Tanker"
          },
          "details": {
            "previousPortCallStartDate": "2021-06-12T20:35:17.000Z",
            "reportedDestinationAfter": "JEBEL ALI",
            "previousPort": {
              "properties": {
                "country": "India",
                "name": "Kandla"
              }
            }
          }
        }
      ],
      "totalCount": 1537
    }
  }
}