Skip to content

Commit

Permalink
fix: AQL filter query
Browse files Browse the repository at this point in the history
  • Loading branch information
Arun-KumarH committed Apr 21, 2024
1 parent 8ee3cb5 commit 82d65e7
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions filter_ownership.aql
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,11 @@ let meta = node.meta
let owner = meta.owners
let found = (
for o in owner
filter o.id == "urn:restorecommerce:acs:names:ownerIndicatoryEntity" && o.value == @entity
let nestedAttributes = o.attributes
for ownerInst in nestedAttributes
filter ownerInst.id == "urn:restorecommerce:acs:names:ownerInstance" && ownerInst.value in @instance
return true
for arg in @customArguments
filter o.id == "urn:restorecommerce:acs:names:ownerIndicatoryEntity" && o.value == arg.entity
let nestedAttributes = o.attributes
for ownerInst in nestedAttributes
filter ownerInst.id == "urn:restorecommerce:acs:names:ownerInstance" && ownerInst.value in arg.instance
return true
)
filter true in found

0 comments on commit 82d65e7

Please sign in to comment.