https://authzed.com logo
#spicedb
Title
# spicedb
w

wenye

03/11/2022, 8:04 PM
Hi all, one question, can I do a relationship query like getting me all resources Y with relation X. tried with following command get the virtual cards with under creditcard:cc_9MSTeIVLW0C6aHtiQSolob > zed relationship read virtualcard parent creditcard:cc_9MSTeIVLW0C6aHtiQSolob --insecure but it returns all virtual cards with parent relation. This is my sample schema. What am I doing wrong? > def user{} > def account { > relation owner: user > permission read = owner > } > definition creditcard { > relation parent: account > relation owner: user > relation viewer: user > > permission read = owner + viewer + parent->read > permission destroy = owner > } > > definition virtualcard { > relation parent: creditcard > relation recipient: user > relation viewer: user > > permission read = recipient + viewer + approver + parent->read > permission spend = recipient > permission requestupdate = recipient > }