OpenFga::TypeDefinition

February 16, 2026 ยท View on GitHub

Properties

NameTypeDescriptionNotes
typeString
relationsHash<String, Userset>[optional]
metadataMetadata[optional]

Example

require 'openfga'

instance = OpenFga::TypeDefinition.new(
  type: document,
  relations: {&quot;reader&quot;:{&quot;union&quot;:{&quot;child&quot;:[{&quot;this&quot;:{}},{&quot;computedUserset&quot;:{&quot;object&quot;:&quot;&quot;,&quot;relation&quot;:&quot;writer&quot;}}]}},&quot;writer&quot;:{&quot;this&quot;:{}}},
  metadata: null
)