Skip to main content

Item node

Description

The Item node represents one or more specific items of the design/interface being queried (by referencing their unique Item id property).

You can use this node to:

  • filter the items fetched by your query

  • check the items referenced by a Link attribute

Usage

The Item node is an input, so it can be added to the segments of comparison nodes.

alt text

It can be:

Configuration

alt text
  • Parameter - select a compatible parameter to use as a placeholder value (if any have been defined in the query).
  • Items - select one or more items that you want to compare.

Example

Fetch all teams except for these three

In full detail:

Fetch items of the Teams design where their Item id property does not equal the Item id of these three Team items

alt text
See JSON code

This code may reference designs, interfaces, attributes or items that don't exist in your Alloy database.

{
"type": "Query",
"properties": {
"collectionCode": "Live",
"dodiCode": "designs_teams"
},
"children": [
{
"type": "NotEquals",
"children": [
{
"type": "ItemProperty",
"properties": {
"itemPropertyName": "itemId"
}
},
{
"type": "AlloyId",
"properties": {
"value": [
"5e1da8cbca31500dc4af3b1e",
"5e1da8d7ca315011c0f2b05c",
"5e1da8e1ca31500a709142eb"
]
}
}
]
}
]
}