@ceramic-sdk/model-protocol v0.2.1 • Docs
Ceramic SDK / @ceramic-sdk/model-protocol / ModelRelationDefinitionV2
constModelRelationDefinitionV2:UnionCodec<[ExactCodec<TypeCodec<object>>,ExactCodec<TypeCodec<object>>]>
Identifies types of properties that are supported as relations by the indexing service.
Currently supported types of relation properties:
- 'account': references a DID property
- 'document': references a StreamID property with associated 'model' the related document must use if provided