Learn how to store and sync data with QuickBlox key-value storage.
_id
, user_id
, parent_id
, created_at
, and updated_at
.
Allowed data types: Integer (or Array of Integer); String (or Array of String); Float (or Array of Float); Boolean (or Array of Boolean); Location (Array of [, ]); File; Date.
Visit Key Concepts page to learn the most important QuickBlox concepts.
Argument | Required | Description |
---|---|---|
className | no | Name of a custom object class. |
fields | no | Data fields (Map<String, Object>). |
Argument | Required | Description |
---|---|---|
className | no | Name of a custom object class. |
objects | no | Custom objects list (List<Map<String, Object>>). |
getByIds()
method. Set the record ID using the ids
object. Go over Sort operators and Search operators sections to learn about filters and search operators you can use to retrieve records.
Argument | Required | Description |
---|---|---|
className | yes | Name of a custom object class. |
ids | yes | Custom objects IDs. |
TestFlutterClass
class with the version
field containing 1000
value, sorted by the created_at
field in descending order, limited to 50 records on the page, and with 10 records skipped at the beginning.
Argument | Required | Description |
---|---|---|
sort | no | Specifies sorting criteria for the field. |
filter | no | Specifies filtering criteria for the field. |
skip | no | Skip N records in search results. Useful for pagination. Default (if not specified): 0. |
limit | no | Limit search results to N records. Useful for pagination. Default value: 100. |
FlutterTestClass
class by the flutterTestField
field with a value greater than 10
.
Search operators | Applicable to types | Description |
---|---|---|
lt | integer, float | Less Than operator. |
lte | integer, float | Less Than or Equal to operator. |
gt | integer, float | Greater Than operator. |
gte | integer, float | Greater Than or Equal to operator. |
ne | integer, float, string, boolean | Not Equal to operator. |
in | integer, float, string | IN array operator. |
or | integer, float, string | All records that contain a value 1 or value 2. |
nin | integer, float, string | Not IN array operator. |
all | array | ALL are contained in array. |
ctn | string | All records that contain a particular substring. |
FlutterTestClass
class sorted by the flutterTestField
field in descending order.
Sort options | Aplicable to types | Description |
---|---|---|
ascending | All types | Sort results in ascending order by setting the ascending as true. |
descending | All types | Sort results in descending order by setting the ascending as false. |
Argument | Required | Description |
---|---|---|
className | yes | Name of a custom object class. |
id | no | Custom object ID. |
fields | no | List of updating fields. |
Argument | Required | Description |
---|---|---|
className | yes | Name of a custom object class. |
objects | no | Custom objects list (Map<String, Object>). |
Argument | Required | Description |
---|---|---|
className | yes | Name of a custom object class. |
idsList | yes | Custom objects IDs list (List<String>). |
Argument | Required | Description |
---|---|---|
className | yes | Name of a custom object class. |
idsList | yes | Custom objects IDs list (List<String>). |
_parent_id
field.
For example, we have the class Rating that contains score
, review
, and comment
fields. We also have a Movie class. So we can create a record of class Rating that will point to the record of the class Movie via its _parent_id
field, so the _parent_id
field will contain the ID of record from class Movie.
_parent_id
field set to the Movie class record ID) will be automatically deleted as well._parent_id=<id_of_parent_class_record>
.