Skip to main content

Bobs 2

Snappy comes with a customized data layer that uses Redis as the main database. It stores all its data as single JSON objects, collectively known as a "Bob."

Each bob can contain whichever data structures you want and only requires two specific properties to work:

{
"id": "ocb3rfqG9jBhhodNsdRAz",
"flavor": "products",
"name": "Silver Bracelet",
"price": 123.50
}

Indexing

TypeSupportsOperatorsDescription
Tagbool, string==, !=Miav
Rangenumber, datetime>, >=, <, <=, inMiav
TextstringmatchesMiav

Tags

Ranges

Full-text

Querying

{
"from": "products",
"where": [
["price", ">=", 100]
],
"orderBy": ["name"],
"limit": [0, 10]
}