Data and Network Sources
is an object that conforms to the Source interface
. It allows you to save data to it, retrieve data, and watch for changes. It is usually backed by some sort of database: Postgres, the file system, or storage on the browser and React Native.
async dispatch(action): Result - a way to asyncronously dispatch actions for fetching data, uploading, and requesting mutations.
observeDoc(domain, name): BehaviorSubject - allows you to subscribe to document changes
observeDocChildren(domain, name): Subject - allows you to subscribe to new or deleted Docs, under a certain doc or domain
Included Source Modules
Aven Cloud ships with the following data sources, but you can also build your own.
- file-system storage for a single node.js process
ReactNativeDataSource - coming soon
BrowserDataSource - coming soon
We also provide the following network sources: