Logotype Sitevision Developer
Log in
Log in

Storage

To acces a Data Storage defined in the manifest of a RESTApp import storage in a server side context.

js
// retrieve an instance of the storage API import storage from '@sitevision/api/server/storage'; // try to retrieve specific stores const collectionDataStore = storage.getCollectionDataStore('myCollectionStore'); const keyValueStore = storage.getKeyValueDataStore('myStore');
json
// manifest.json { ... "storage": { "collectionDataStore": "myCollectionStore", "keyValueDataStore": "myStore" // multiple stores ["x", "y"] } }
Did you find the content on this page useful?