code | type | title |
---|---|---|
true |
page |
sunionstore |
Computes the union of multiple sets of unique values and stores it in a new set.
If the destination key already exists, it is overwritten.
sunionstore(dest, sources, [options]);
Arguments | Type | Description |
---|---|---|
key |
string |
Union target key |
sources |
string[] |
List of set keys |
options |
object |
Optional query arguments |
The options
arguments can contain the following option properties:
Property | Type (default) | Description |
---|---|---|
queuable |
boolean (true) |
If true, queues the request during downtime, until connected to Kuzzle again |
Resolves to the number of values added to the destination key.
<<< ./snippets/sunionstore.js