Skip to content

Commit 2a0bd5a

Browse files
committed
Add example of simple relation path in entity page documentation and clarify usage of fromBlueprint property for better understanding.
1 parent 8c3536c commit 2a0bd5a

File tree

1 file changed

+24
-0
lines changed

1 file changed

+24
-0
lines changed

docs/customize-pages-dashboards-and-plugins/page/entity-page.md

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -321,6 +321,30 @@ You can also mix fixed hops with variable hops. For example, if you specify `sel
321321

322322
In this example, the system will traverse 2 fixed hops (Unit → Basic Team → Group) and then continue with up to 3 additional hops using the `team_self_relation`, starting from where the fixed hops left off. This could represent a complete organizational hierarchy from Unit all the way up to higher-level organizational structures.
323323

324+
**Simple relation path example:**
325+
326+
You can also use regular relations (not self-relations) in your paths:
327+
328+
```json showLineNumbers
329+
{
330+
"dataset": {
331+
"combinator": "and",
332+
"rules": []
333+
},
334+
"title": "Developer",
335+
"targetBlueprint": "developer",
336+
"relationPath": {
337+
"path": [
338+
"member_of"
339+
]
340+
}
341+
}
342+
```
343+
344+
:::info The fromBlueprint property
345+
The `fromBlueprint` property is only needed when the path starts from the current page's blueprint and ends with the entities listed in the tab. For more information about relation paths see the [Relation operators](https://docs.port.io/search-and-query/#relation-operators) documentation.
346+
:::
347+
324348

325349
## Runs
326350

0 commit comments

Comments
 (0)