File tree Expand file tree Collapse file tree 2 files changed +25
-3
lines changed Expand file tree Collapse file tree 2 files changed +25
-3
lines changed Original file line number Diff line number Diff line change @@ -187,9 +187,9 @@ This driver uses semantic versioning:
187187
188188 The option is only respected by read-only requests.
189189
190- - Added support for ` ifMatch ` and ` ifNoneMatch ` options ([ #707 ] ( https://github.com/arangodb/arangojs/707 ) )
190+ - Added support for ` ifMatch ` and ` ifNoneMatch ` options ([ #707 ] ( https://github.com/arangodb/arangojs/issues/ 707 ) )
191191
192- - Added ` overwrite ` option to ` db.acquireHostList ` ([ #711 ] ( https://github.com/arangodb/arangojs/711 ) )
192+ - Added ` overwrite ` option to ` db.acquireHostList ` ([ #711 ] ( https://github.com/arangodb/arangojs/issues/ 711 ) )
193193
194194 Setting this option to ` true ` will replace the current host list, removing any
195195 hosts no longer present in the cluster.
@@ -216,6 +216,13 @@ This driver uses semantic versioning:
216216- Added missing ` commitIntervalMsec ` option to ` ArangoSearchViewProperties `
217217 type
218218
219+ - Added missing ` deduplicate ` option to ` EnsurePersistentIndexOptions ` type
220+ ([ #771 ] ( https://github.com/arangodb/arangojs/issues/771 ) )
221+
222+ - Added missing ` unique ` option to ` EnsureZkdIndexOptions ` type
223+
224+ - Added missing ` deduplicate ` and ` estimates ` fields to ` PersistentIndex ` type
225+
219226- Added new ArangoDB 3.10 ` db.queryRules ` method
220227
221228## [ 7.8.0] - 2022-05-19
Original file line number Diff line number Diff line change @@ -48,6 +48,13 @@ export type EnsurePersistentIndexOptions = {
4848 * Default: `false`
4949 */
5050 sparse ?: boolean ;
51+ /**
52+ * If set to `false`, inserting duplicate index values from the same
53+ * document will lead to a unique constraint error if this is a unique index.
54+ *
55+ * Default: `true`
56+ */
57+ deduplicate ?: boolean ;
5158 /**
5259 * If set to `false`, index selectivity estimates will be disabled for this
5360 * index.
@@ -232,6 +239,12 @@ export type EnsureZkdIndexOptions = {
232239 * A unique name for this index.
233240 */
234241 name ?: string ;
242+ /**
243+ * If set to `true`, a unique index will be created.
244+ *
245+ * Default: `false`
246+ */
247+ unique ?: boolean ;
235248 /**
236249 * If set to `true`, the index will be created in the background to reduce
237250 * the write-lock duration for the collection during index creation.
@@ -518,7 +531,9 @@ export type PersistentIndex = GenericIndex & {
518531 type : "persistent" ;
519532 fields : string [ ] ;
520533 cacheEnabled : boolean ;
521- storedValues : string [ ] ;
534+ deduplicate : boolean ;
535+ estimates : boolean ;
536+ storedValues ?: string [ ] ;
522537} ;
523538
524539/**
You can’t perform that action at this time.
0 commit comments