Import Schema

ImportSchemaFromStringAsync

Imports a schema into SpiceDB from a provided string.

Parameters

  • schema - The schema to import, provided as a string.

Returns

  • A task representing the asynchronous operation of importing the schema.

ImportRelationshipsFromFileAsync

Imports relationships into SpiceDB from a specified file.

Parameters

  • filePath - The path to the file containing the relationships to import.

Returns

  • A task representing the asynchronous operation, with a ZedToken? indicating the version of the data after the import operation.