Example: Comment
A comment with an author and replies, which are themselves comments.

Extends · closed

text
The comment's text.
author
The person who wrote the comment.
optional
replies
Links to replies, which are themselves comments.
of optional

A comment with a required text, an author link to a person, and replies that link to more comments. The type refers to itself, which works because schemas reference each other by name.

This page describes the example/comment type, one of the example schemas. The formal schema is attached as the schemaDefinition in this page's metadata, so the app can show it and create values of this type.

See also

    References: why named references allow recursion.

    tree: another self-referencing type.

    Comment: the real signed comment blob.

    Examples: every example, grouped by feature.

Do you like what you are reading? Subscribe to receive updates.

Unsubscribe anytime