Skip to content

Example Proposal: Comments #643

@curran

Description

@curran

I have an idea for a new example for ShareDB: Comments. This would be a simple interface that lets users add comments to a thread, similar to GitHub Issues.

The goal is to demonstrate how to do the following combination of things with ShareDB, which I have been struggling to do for some time now:

  • Securely allow only certain queries, and deny all others (do not allow the client to execute arbitrary queries)
  • Server-render the first query results
  • Hydrate a Query client-side
  • Ensure the query result set updates when a new comment is added or an existing comment is deleted
  • Ensure each document in the query result set updates (e.g. when a comment is edited)

Would there be interest in adding such an example?

Related:

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions