arangosh> db.ids.ensureIndex({ type: "skiplist", fields: [ "name.first", "name.last" ], unique: true });
{
"deduplicate" : true,
"fields" : [
"name.first",
"name.last"
],
"id" : "ids/18115",
"isNewlyCreated" : true,
"sparse" : false,
"type" : "skiplist",
"unique" : true,
"code" : 201
}
arangosh> db.ids.save({ "name" : { "first" : "hans", "last": "hansen" }});
{
"_id" : "ids/18118",
"_key" : "18118",
"_rev" : "_V8R1UMS--_"
}
arangosh> db.ids.save({ "name" : { "first" : "jens", "last": "jensen" }});
{
"_id" : "ids/18122",
"_key" : "18122",
"_rev" : "_V8R1UMa--_"
}
arangosh> db.ids.save({ "name" : { "first" : "hans", "last": "jensen" }});
{
"_id" : "ids/18125",
"_key" : "18125",
"_rev" : "_V8R1UMa--B"
}
[ArangoError 1210: unique constraint violated - in index 18115 of type skiplist over ["name.first","name.last"]; conflicting key: 18118]