The Wayback Machine - https://web.archive.org/web/20200715023527/https://github.com/topics/arangodb
Skip to content
#

arangodb

Here are 182 public repositories matching this topic...

oliverlockwood
oliverlockwood commented Apr 1, 2020

On a sharded collection, if you try to create a custom index (e.g. hash index) with uniqueness, that doesn't include the sharding key (which by default is the autogenerated _key) then it will fail with an error like:

Index creation failed: shard key '_key' must be present in unique index

There's zero documentation that I could find around this, and it's fairly fundamental, since you can't

供应链中台系统基础版,集成零售管理, 电子商务, 供应链管理, 财务管理, 车队管理, 仓库管理, 人员管理, 产品管理, 订单管理, 会员管理, 连锁店管理, 加盟管理, 前端React/Ant Design, 后端Java Spring+自有开源框架,全面支持MySQL, PostgreSQL, 全面支持国产数据库南大通用GBase 8s,通过REST接口调用,前后端完全分离。
  • Updated Jul 13, 2020
  • Java
neumann-d
neumann-d commented May 22, 2019

When checking if a document exists in a collection, I use the function documentCollection.documentExists. For example:

const cities = db.collection("City")
const city_exists = await cities.documentExists("Country/1234")
console.log("city_exists = ", city_exists)

But instead of looking only in the specific "City" collection, it finds documents from other collections (like "Count

davechallis
davechallis commented Dec 17, 2019

I've been working on a velocypack parser (in Rust), and ran into some troubles parsing some output from ArangoDB:

0x0c 0x73 0x01 0x12 0x00 0x00 0x00 0x00 0x00 0x4a 0x61 0x75 0x74 0x68 0x6f 0x72 0x69 0x7a 0x65 0x64 0x1a 0x44 0x75 0x73 0x65 0x72 0x18 0x4b 0x69 0x73 0x41 0x64 0x6d 0x69 0x6e 0x55 0x73 0x65 0x72 0x1a 0x48 0x64 0x61 0x74 0x61 0x62 0x61 0x73 0x65 0x47 0x5f 0x73 0x79 0x73 0x74 0x6
elaineli
elaineli commented Aug 28, 2018

public function update(Document $document, array $options = [])
{
$documentId = $this->getDocumentId($document);
return $this->updateById($document, $documentId, $document, $options);
}

It seems the first arg to call to updateById should be $collection, and the update function does not accept $collection. Am I missing something?

drgraduss
drgraduss commented Nov 26, 2015

Is there implementation of AQL's DOCUMENT function which returns document by id?

Basically every time you're using graph operations such as GRAPH_NEIGHBORS, GRAPH_COMMON_NEIGHBORS etc. you're getting list of handles back and in order to get the actual documents you need to perform join on id with vertex collections whereas AQL natively supports document function which returns document by handle

Improve this page

Add a description, image, and links to the arangodb topic page so that developers can more easily learn about it.

Curate this topic

Add this topic to your repo

To associate your repository with the arangodb topic, visit your repo's landing page and select "manage topics."

Learn more

You can’t perform that action at this time.