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
| Type | Supports | Operators | Description |
|---|---|---|---|
| Tag | bool, string | ==, != | Miav |
| Range | number, datetime | >, >=, <, <=, in | Miav |
| Text | string | matches | Miav |
Tags
Ranges
Full-text
Querying
{
"from": "products",
"where": [
["price", ">=", 100]
],
"orderBy": ["name"],
"limit": [0, 10]
}