Skip to content

Commit fbe1558

Browse files
committed
Merge branch '1.1.x' into 1.2.x
2 parents 9659da3 + 7d2c3ca commit fbe1558

File tree

1 file changed

+5
-9
lines changed

1 file changed

+5
-9
lines changed

docs/en/reference/indexes.rst

Lines changed: 5 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -143,7 +143,7 @@ For your convenience you can quickly specify a unique index with
143143
fields:
144144
username:
145145
unique: true
146-
order: true
146+
order: asc
147147
148148
If you want to specify an index that consists of multiple fields
149149
you can specify them on the class doc block:
@@ -198,10 +198,8 @@ you can specify them on the class doc block:
198198
options:
199199
unique: true
200200
keys:
201-
accountId:
202-
order: asc
203-
username:
204-
order: asc
201+
accountId: asc
202+
username: asc
205203
206204
To specify multiple indexes you must use the ``@Indexes``
207205
annotation:
@@ -256,12 +254,10 @@ annotation:
256254
indexes:
257255
accountId:
258256
keys:
259-
accountId:
260-
order: asc
257+
accountId: asc
261258
username:
262259
keys:
263-
username:
264-
order: asc
260+
username: asc
265261
266262
Embedded Indexes
267263
----------------

0 commit comments

Comments
 (0)