#643·sharedb

Example Proposal: Comments

Author: curranCreated Feb 25, 2024Updated Feb 25, 2024

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: