WSDataDataStore

Datastores. WSDataDataStore

A general purpose datastore that uses Webstrates Data API as the storage.

This datastore registers as the type "wsdata".

Options

  • "storageName" - The name of the data bucket you intend to use inside automerge.contentDoc.data (default: "varvData")

Constructor

new WSDataDataStore()

Source:
Examples

Adding the datastore

{
  "dataStores": { 
     "myDataStore": {
         "type": "wsdata", 
         "options": {
             "storageName": "myData"
         }
     },
     ...
 },
 ...

Using the datastore as default store globally

{
  "defaultMappings": ["wsdata", "cauldron]
}