Overview

The AlloyId value type represents an id used in Alloy to univocally identify certain entities in the system, most import of which are items. This is used for comparing link attributes against one or more item ids (underlying or condition).

Properties

Property Name Type Required Description
itemId string[] true The Alloy Id

Allowed Children

none

Requirements

N/A

Return Type

string[ ]

Example

{
  "type": "AlloyId",
  "properties": {
    "value": ["5c6bd2fc4b4d4259071069e3", "5c6bd2fc4b4d4259071069e4"]
  }
}

Example

The following query will find linked items with a specific Item ID.

{
  "type": "Query",
  "properties": {
    "dodiCode": "designs_trees",
    "attributes": ["all"]
  },
  "children": [
    {
      "type": "Equals",
      "children": [
        {
          "type": "Attribute",
          "properties": {
            "attributeCode": "attributes_treesSpecies"
          }
        },
        {
          "type": "AlloyId",
          "properties": {
            "value": ["5c5d525e1ed8bc2e74a2d366"]
          }
        }
      ]
    }
  ]
}