ReadRelationships: what is the difference between relationship_filter.optional_relation
and nested subject_filter.optional_relation
?
#1861
-
Refer ReadRelationships filters. |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 5 replies
-
Hi @theronic, If I understand your question correctly, |
Beta Was this translation helpful? Give feedback.
-
@vroldanbet see ReadRelationshipRequest.relationship_filter: https://buf.build/authzed/api/docs/main:authzed.api.v1#authzed.api.v1.RelationshipFilter Then look inside |
Beta Was this translation helpful? Give feedback.
-
Updated title to clarify where these filters are. |
Beta Was this translation helpful? Give feedback.
@theronic in SpiceDB the subject optional relation allows you to reference, instead of a subject entity, a relation in a subject entity. If you think of a graph, what this allows you to is to reference an edge instead of a node. Example: