@@ -32,9 +32,19 @@ openKeyCursor(query, direction)
3232 range containing only that key. If nothing is passed, this will default to a key range
3333 that selects all the records in this object store.
3434- ` direction ` {{optional_inline}}
35- - : An [ ` IDBCursorDirection ` ] ( https://w3c.github.io/IndexedDB/#enumdef-idbcursordirection ) telling the cursor what direction to travel.
36- Valid values are ` "next" ` , ` "nextunique" ` , ` "prev" ` ,
37- and ` "prevunique" ` . The default is ` "next" ` .
35+ - : A string telling the cursor which direction to travel. The default is ` next ` . Valid values are:
36+ - ` next `
37+ - : The cursor is opened at the start of the store; then, the cursor returns all records, even duplicates,
38+ in the increasing order of keys.
39+ - ` nextunique `
40+ - : The cursor is opened at the start of the store; then, the cursor returns all records, that are not duplicates,
41+ in the increasing order of keys.
42+ - ` prev `
43+ - : The cursor is opened at the end of the store; then, the cursor returns all records, even duplicates,
44+ in the decreasing order of keys.
45+ - ` prevunique `
46+ - : The cursor is opened at the end of the store; then, the cursor returns all records, that are not duplicates,
47+ in the decreasing order of keys.
3848
3949### Return value
4050
0 commit comments