-
My schema is split into two files: I'm writing
I guess it is because I split the schema into modules; core and registry.
# core.fga
module core
type user_group
relations
define admin: [user]
define member: [user] or admin
type user # registry/registry.fga
module registry
type repo_group
relations
define owner_group: [user_group] # registry/registry_test.fga.yaml
name: registry test
model_file: ./registry.fga
tuples:
- user: user_group:0
relation: owner_group
object: repo_group:0
- user: user:00 # << error
relation: admin
object: user_group:0 |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 2 replies
-
Hi @freckie You should point to the 'fga.mod' file as the Let me know if that works for you |
Beta Was this translation helpful? Give feedback.
-
Great point, just submitted a PR openfga/openfga.dev#1030 |
Beta Was this translation helpful? Give feedback.
Hi @freckie
You should point to the 'fga.mod' file as the
model_file
.Let me know if that works for you