Serverless logo
Products
FRAMEWORK
Overview
CI/CD
Secrets
Plugins
Pricing
Signup
CONSOLE
Overview
Pricing
Signup
CLOUD
Overview
Pricing
FAQ
Signup
Company
ABOUT US
About
Careers
Contact Us
SUPPORT
Get Support
COMMUNITY
Slack
Forum
Partners
Meetups
LEARN
Blog
Examples
Guides
Serverless Cloud logoDocsPricingFAQ
Serverless Cloud Dashboard
Serverless Cloud logo
Serverless Cloud Dashboard
DocumentationPricingFAQ
Serverless logo
Serverless Cloud - Docs

Serverless Cloud – Documentation

Thank you! Your submission has been received!
Oops! Something went wrong while submitting the form.

Item title

Item description

X
Thank you! Your submission has been received!
Oops! Something went wrong while submitting the form.

Item title

Item description

Serverless logo
Product
Expand
Option 1Option 2Option 3
DocsPricing
Company
Expand

Feature 1

Lorem ipsum dolor emet sin dor lorem ipsum

Feature 2

Lorem ipsum dolor emet sin dor lorem ipsum

Feature 3

Lorem ipsum dolor emet sin dor lorem ipsum

Feature 4

Lorem ipsum dolor emet sin dor lorem ipsum
Search
Sales & Support
LoginSign Up
Open MenuClose Menu
Login / Sign Up
Go to GitHub
Serverless Cloud - Build full stack apps better and faster than everyone else | Product Hunt
Home
How it Works
Development Workflows
Building Applications
Link 1Link 1Link 1
Building Applications
Link 1Link 1Link 1
Building Applications
Link 1Link 1Link 1
Automated Testing
CLI Reference

Managing Data on Instances

Serverless Cloud provides its own K/V data store called Serverless Data attached to every instance as a part of its runtime. It's possible to manipulate Serverless Data programmatically using data interface of the Serverless Development Kit but sometimes developers need to view data, delete some items, or repair them to keep the integrity. Serverless Cloud provides Data tab on the Instance Detail page to meet this need.

Note that this feature is provided in beta and should be used accordingly.

Querying Serverless Data with Data Manager

Using Data Manager, you can view all the data of an instance or you can view specific items by querying by the key. Note that you can use the conditionals explained here to filter the data required. In the below image, you see that we are trying to see the items whose id is less than 3.

Screen Shot 2022-01-10 at 11 25 12 AM

Besides the primary index, you can also run queries on labels to filter data. In the below example, we filter all the completed todo items with a query.

Screen Shot 2022-01-10 at 11 36 47 AM

You can switch to JSON view to see the fields of items in a more developer-friendly way.

Screen Shot 2022-01-10 at 11 38 15 AM

Note that the results are paginated and the page size is 100 by default. You can increase it to 1000 if you prefer.

Adding new items with Data Manager

There might be some cases where you need to run a quick test with an exact data. You can always populate data for tests on Serverless Cloud with beforeAll function, but it's sometimes a tiny case that needs a quick turnaround. In such cases, you can add items using the Data Manager. In the below image, we are adding a new todo item by providing a key, value, and/or any additional metadata.

Screen Shot 2022-01-10 at 11 47 42 AM

Deleting items with Data Manager

Developers may also need to delete some data to preserve the integrity of data, to test a specific case, or for any other reason. In such cases, the Data Manager lets you delete items from Serverless Data. Please note that this operation is irreversible and should be used accordingly.

Screen Shot 2022-01-10 at 12 04 12 PM

Edit this page
Serverless logo
Product
Expand
Option 1Option 2Option 3
DocsPricing
Company
Expand

Feature 1

Lorem ipsum dolor emet sin dor lorem ipsum

Feature 2

Lorem ipsum dolor emet sin dor lorem ipsum

Feature 3

Lorem ipsum dolor emet sin dor lorem ipsum

Feature 4

Lorem ipsum dolor emet sin dor lorem ipsum
Search
Sales & Support
LoginSign Up
Open MenuClose Menu
FRAMEWORK
Overview
CI/CD
Secrets
Plugins
Pricing
CONSOLE
Overview
Pricing
Signup
RESOURCES
Framework DocsConsole DocsGuidesExamplesBlog
COMMUNITY
SlackMeetupsForum
SUPPORT
Contact UsPremium Support
COMPANY
AboutCareersPartners
Join our monthly newsletter
Thank you! Your submission has been received!
Oops! Something went wrong while submitting the form.
© 2022 Serverless, Inc. All rights reserved.
Terms of ServicePrivacy Policy