Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

ExampleEquivalent Example
Code Block
languagejs
titleExample Edge Rule
collapsetrue
{
“from”: “tenant”,
“to”: “vserver”,
“label”: “owns”,
“direction”: “OUT”,
“multiplicity”: “One2Many”,
“contains-other-v”: “${direction}”,
“delete-other-v”: “NONE”,
“SVC-INFRA”: “!${direction}”,
“prevent-delete”: “${direction}”
}
Code Block
languagejs
titleEquivalent Edge Rule
collapsetrue
{
“from”: “vserver”,
“to”: “tenant”,
“label”: “owns”,
“direction”: “IN”,
“multiplicity”: “One2Many”,
“contains-other-v”: “!${direction}”,
“delete-other-v”: “NONE”,
“SVC-INFRA”: “${direction}”,
“prevent-delete”: “!${direction}”
}
Code Block
languagetext
titleHow to read in/out/direction
collapsetrue
How to read "from"/"to" and "direction" in this case:
- the "in" node is "vserver"
- the "out" node is "tenant"

Code Block
languagetext
titleHow to read the label
collapsetrue
How to read the "label" in this case:
- ("out" node) "label" ("in" node)

i.e. tenant "owns" vserver

Code Block
languagetext
titleHow to read multiplicity
collapsetrue
How to read "multiplicity" in this case:
- ("in" node) cardinality is "one"
- ("out" node) cardinality is "many"

i.e.
Each "tenant" has one "vserver"
Each "vserver" has many "tenants"

Code Block
languagetext
titleHow to read contains-other-v
collapsetrue
How to read "contains-other-v" in this case:
- traversalfetching data offor ("out" node) includes data for ("in" node)

i.e. fetching traversaldata offor "tenant" includes data for "vserver"

Code Block
languagetext
titleHow to read delete-other-v
collapsetrue
How to read "delete-other-v" in this case:
- delete of ("out" node) includes does nothing to ("in" node)

i.e. delete of "tenant" includes does nothing to "vserver"

Code Block
languagetext
titleHow to read SVC-INFRA
How to read "SVC-INFRA" in this case:
- when running edge-tag-query on ("in" node) traverse to ("out" node) and continue


i.e. when running edge-tag-query on "vserver" traverse to "tenant" and continue

Code Block
languagetext
titleHow to read prevent-delete
collapsetrue
How to read "prevent-delete" in this case:
- prevent delete of ("out" node) when related to ("in" node), allow delete of ("in" node)

i.e.
prevent delete of "tenant" when related to "vserver", allow delete of "vserver"

...