Const
Marks a string field of an object schema as the content version of named sibling fields: the format and revision (e.g. dxos.org/scene/1) of data ECHO stores opaquely. Content migrations (Migration.defineContent) find the version through it.
dxos.org/scene/1
Migration.defineContent
Schema.Struct({ schema: Schema.String.pipe(Annotation.ContentVersionAnnotation.set({ fields: ['content'] }), Schema.optional), content: Schema.Record(Schema.String, Schema.Any),}) Copy
Schema.Struct({ schema: Schema.String.pipe(Annotation.ContentVersionAnnotation.set({ fields: ['content'] }), Schema.optional), content: Schema.Record(Schema.String, Schema.Any),})
Marks a string field of an object schema as the content version of named sibling fields: the format and revision (e.g.
dxos.org/scene/1) of data ECHO stores opaquely. Content migrations (Migration.defineContent) find the version through it.