zed icon indicating copy to clipboard operation
zed copied to clipboard

Unable to import relationships without a schema file

Open heytrav opened this issue 9 months ago • 7 comments

I'm attempting to import relationships for an existing schema. I've tried defining the relationships files a few different ways but without any luck.

My relations file is structured like in the examples:

relationships: >-
  document:firstdoc#writer@user:tom

  document:firstdoc#reader@user:fred

  document:seconddoc#reader@user:tom

Because I already have a schema loaded into SpiceDB I would expect that I can import the relationships separately, however I always get an error mesages:

 zed import --schema=false  dev-resources/k8s-data/spicedb-data/relations/documents.yaml

2:01PM ERR terminated with errors error="either schema or schemaFile must be present"

heytrav avatar May 08 '25 02:05 heytrav