resource-registry/src/test/resources/queries/query4.match.oquery

11 lines
610 B
Plaintext

SELECT EXPAND(ret) FROM (
MATCH
{class: StateFacet, as: statefacet0, where: (($currentMatch['@class'] INSTANCEOF 'StateFacet') AND (statefacet0.value = "down"))}
.inE('ConsistsOf') { as: consistsof00, where: ($currentMatch['@class'] INSTANCEOF 'ConsistsOf')}
.outV('EService') { as: eservice000, where: (($currentMatch['@class'] INSTANCEOF 'EService') AND (eservice000.id = "93995af0-4f95-4816-a53e-3e1bc27ef475"))}
.outE('ConsistsOf') { where: ($matched.consistsof00 == $currentMatch)}
.inV('StateFacet') { where: ($matched.statefacet0 == $currentMatch)}
RETURN
DISTINCT(statefacet0) as ret
)