I've created following OpenFGA model:
model
schema 1.1
type user
type relation
relations
define actor_relation: [user]
type relation_type
relations
define type: [relation]
type entity_type
relations
define can_read_relation_type: [relation_type]
define can_read_relation: type from can_read_relation_type
type entity
relations
define subject_relation: [relation]
define defines: [entity_type]
define can_read_relation: subject_relation and can_read_relation from defines
define can_read: [user] or actor_relation from can_read_relation
But it is not valid because of the last line where "can_read_relation" is not allowed in combination with "from" because "can_read_relation" is not a direct relation. How can I fix this?