Skip to content
This repository was archived by the owner on Mar 10, 2025. It is now read-only.

Latest commit

 

History

History
15 lines (9 loc) · 652 Bytes

File metadata and controls

15 lines (9 loc) · 652 Bytes

@ceramic-sdk/model-protocol v0.2.1Docs


Ceramic SDK / @ceramic-sdk/model-protocol / ModelRelationDefinitionV2

Variable: ModelRelationDefinitionV2

const ModelRelationDefinitionV2: 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