Questions tagged [arangodb]

ArangoDB is a multi-model NoSQL database with a flexible data model for documents, graphs, and key-values collections.

ArangoDB is a multi-model NoSQL database with a flexible data model for documents, graphs, and key-values collections. It targets high-performance applications using a convenient declarative query language AQL and JavaScript extensions.

Useful links


Related tags :

1741 questions
10
votes
1 answer

When should I use AQL?

In the context of ArangoDB, there are different database shells to query data: arangosh: The JavaScript based console AQL: Arangodb Query Language, see http://www.arangodb.org/2012/06/20/querying-a-nosql-database-the-elegant-way MRuby: Embedded…
poseid
  • 6,456
  • 9
  • 45
  • 74
9
votes
2 answers

Duplicate documents getting inserted in edge collection

I am using node driver version 6 of arangodb to insert relations between two vertices as follows. db.collection("starks").save({ _from: "Starks/Lyanna-Stark", _to: "Starks/Ned-Stark", type: "married" }); This inserts relation…
Dipti
  • 93
  • 4
9
votes
4 answers

How to delete all collections and documents in ArangoDb

I am trying to put together a unit test setup with Arango. For that I need to be able to reset the test database around every test. I know we can directly delete a database from the REST API but it is mentioned in the documentation that creation…
Nicolas Joseph
  • 1,554
  • 2
  • 13
  • 23
8
votes
2 answers

ArangoDB multiple edge collection performance

I'm building an ArangoDB edge collection that consists of many "types". By type, think animal species taxonomy. I will be building a graph that connects all of these. Example: parent/child of ancient homo species: Homo habilis->Homo…
Chemdream
  • 460
  • 5
  • 19
8
votes
2 answers

Filter on array value in ArangoDB

I have a document like this: { "baths": 2, "beds": 3, "id": "3225C", "addrs": [ { "line2": "", "line3": "", "state": "OH", "zip": "67845", "line1": "3225 ABC AVE", "city": "CLEVELAND" }, { …
Lerato
  • 271
  • 3
  • 5
8
votes
1 answer

How to count and order by number of incoming edges

I am trying to get get the ten people who have starred in the most movies and get the name and the number of movies in decending order. I am using the IMDB dataset. This is what I have so far: arangosh [_system]> var Graph =…
mikewilliamson
  • 22,411
  • 17
  • 53
  • 84
8
votes
1 answer

Node Express Connect - Session Management

I've written a session store driver for ArangoDB for ConnectJS. It is working, although still very much in alpha, but I have a couple questions. First sessions that have an expires attribute of "false" only remain for the duration of the user-agent.…
skinneejoe
  • 3,741
  • 5
  • 27
  • 42
8
votes
3 answers

ArangoDB authentication via HTTP

I've seen examples of how to authenticate with a database using arangosh, but I couldn't find anything in the documentation about how to authenticate via the http API. Is this possible? Is it something like…
skinneejoe
  • 3,741
  • 5
  • 27
  • 42
7
votes
3 answers

Is it possible to implement ArangoDB sharding by database (rather than collection or shardKey)?

I have a large Arango instance with lots of databases - one for each project. Each projects database has a bunch of collections and a lot of data. The databases look something like project1 project2 project3 ... project500 I'd like to distribute…
ZECTBynmo
  • 2,838
  • 2
  • 20
  • 33
7
votes
1 answer

ArangoDB Import csv to edge (Graph)

I have a csv file that I want to import into a graph in ArangoDB. I'm using ArangoDB3-3.1.24 community version. Here are the first three rows of the csv file…
Muna arr
  • 343
  • 1
  • 12
7
votes
1 answer

ArangoDB - how to implement a custom recommendation engine using graph?

Lets say we have a database of food items such as: item1 = {name: 'item1', tags: ['mexican', 'spicy']}; item2 = {name: 'item2', tags: ['sweet', 'chocolate', 'nuts']}; item3 = {name: 'item3', tags: ['sweet', 'vanilla', 'cold']}; And we have a user…
Stan Lee
  • 117
  • 5
7
votes
1 answer

Passing parameters to db.query with arangojs

I'm having problems sending parameters with the ArangoJS library and was wondering if anyone could help. With the example below, it is possible to execute db.query if parameter values are in the query, but as soon as I try to use bindVars I get…
David Thomas
  • 1,894
  • 2
  • 14
  • 18
7
votes
1 answer

In ArangoDB, will querying, with filters, from the neighbor(s) be done in O(n)?

I've been reading Aql Graph Operation and Graphs, and have found no concrete example and performance explanation for the use case of SQL-Traverse. E.g.: If I have a collection Users, which has a company relation to collection Company Collection…
TruongSinh
  • 3,484
  • 23
  • 48
7
votes
1 answer

Sparql-interface for ArangoDB

for arangodb, I know its own query language AQL, and as far as I can see there is also an add-on which allows to use Gremlin for graph traversals etc. In one of my projects, we strongly use SPARQL, so: Is there a way to use SPARQL as query language…
augustin-s
  • 613
  • 3
  • 11
7
votes
2 answers

What are the user defined key's value restrictions?

In ArangoDB, when a collection is defined to allow user defined keys, what are the restrictions on the value of the key? For example, it appears that a key of "Name-2" works but a key of "Name,2" gives ArangoError 1221: invalid document key error.
WiredPrairie
  • 54,618
  • 14
  • 105
  • 136