earthstar-project / earthstar

Storage for private, distributed, offline-first applications.
https://earthstar-project.org
GNU Lesser General Public License v3.0
623 stars 18 forks source link

Filter sparse documents from store results unless specifically requested #351

Open sgwilym opened 1 month ago

sgwilym commented 1 month ago

What's the problem you want solved?

Currently sparse documents (documents without their corresponding payloads) are returned by all Store methods.

Is there a solution you'd like to recommend?

  1. By default, omit sparse documents from results.
  2. Modify various query types and method params so that users can explicitly define when they'd like sparse documents included.