Questions tagged [arangojs]

ArangoDB is a NoSQL database with graphs support. Its key features are schemaless documents, key/value store, transactions and joins, also ArangoDB allows for multi-master clustering and horizontal scalability.

113 questions
0
votes
0 answers

When will Arango support the JavaScript optional chaining operator?

I have a number of newer JavaScript modules I would like to use with Arango. They use the conditional chaining operator (.?) and Arango fails to parse them when loading as part of a Foxx service. I am loathe to transpile them back to older…
AnyWhichWay
  • 716
  • 8
  • 11
0
votes
0 answers

I am new to aragodb and currently exploring on graphs basically, So is there a multiple ways to create graphs in arango, Any help is appreciated

Multiple ways of creating graphs in arango I had created few document collections which represents nodes and a edge collection which represents relationship between these nodes. There are multiple graphs that needs to be connected, As of now we are…
0
votes
1 answer

arangodb document key length best practice

I am wokring on arangodb and was wondering weather doucment key size will affect database size. I am not sure how arango db stores data but does key length of document affects db size ? { 'username': 'testuser', 'password':…
0
votes
0 answers

ArangoSearch View Shard Key

Hello ArangoDb community, I could not find documents related to shard key for ArangoSearch view. Without shardKey for ArangoSearch view, the request would hit all nodes and search performance would be very bad because it would hit all nodes in the…
Sun Chanras
  • 49
  • 2
  • 7
0
votes
1 answer

How to get entire Graph in ArangoDB?

Using arangojs ArangoDB driver. const db = new Database(); const graph = db.graph("some-graph"); const data = await graph.get(); // data only contains general information about the graph How to get entire graph, including data nodes and edges, as…
Om Solari
  • 207
  • 1
  • 4
  • 13
0
votes
0 answers

How do I check if an edge exists between two collections in ArangoDB AQL?

I would like to ask if there is a way in ArangoDB AQL to see whether an edge exists between two collections? At the moment I have a collection called staff and one called department Basically for the query I need to check if and edge exists between…
ffx292
  • 542
  • 12
  • 27
0
votes
0 answers

Building arangodb complex query with lots of AND fails

I'm trying to pass a map of key:value to arangodb query with AND checking if c.key == value AND c.key == value etc etc. This is my code: public async getCollectionsQuery(query: Record): Promise[]> { const req =…
Dariusz
  • 960
  • 13
  • 36
0
votes
0 answers

arangodb JS transaction performance

I have written a JS transaction to be execute on arango server expecting it to improve the performance and reduce the communication between JS client and arango server. While testing, I found that performance have degraded when using JS…
Ronak SHAH
  • 171
  • 2
  • 11
0
votes
1 answer

Sorting on _key and filter

I have a requiremnt in which I am getting stucked. Below are few points that needs to be done. 1: I want to sort on _key field which is system generated (configured as auto increment) and filter them accordingly. Eg: SORT users._key DESC FILTER…
Abhay Rawat
  • 43
  • 1
  • 5
0
votes
0 answers

arangojs collections() errors return

I'm totally green with it all. Sorry, but I cant get this thing to work at all node.js + arangojs > const myColl = async () => {//new Promise((resolve, reject) => { try { const db = await new Database({ url:…
Dariusz
  • 960
  • 13
  • 36
0
votes
1 answer

How to do ArangoDB geo index for multiple location[lat,lon]

I tried to do Geo Index for a job post platform. I have a job post object which could have multiple locations[lat,lon]. I've read and tried everything on the official documents but I can only do GeoIndex with one…
Sun Chanras
  • 49
  • 2
  • 7
0
votes
1 answer

Return a graph as nested object in ArangoDB

I wanted to implement a small support ticket system with ArangoDB. I created a collection ticketcategories and wanted to nest them using edges, so I created an edge collection and a graph. To visualize this, here's an example of the structure: And…
Blade
  • 477
  • 1
  • 7
  • 18
0
votes
1 answer

ArangoDB populate relation as field over graph query

I recently started using Arango since I want to make use of the advantages of graph databases. However, I'm not yet sure what's the most elegant and efficient approach to query an item from a document collection and applying fields to it that are…
Blade
  • 477
  • 1
  • 7
  • 18
0
votes
1 answer

How to enable caching in ArangoDB via Docker or arangojs?

I would like to enable caching in ArangoDB, automatically when my app start. I'm using docker-compose to start the whole thing but apparently there's no simple parameter to enable caching in ArangoDB official image. According to the doc, all the…
Tdy
  • 863
  • 12
  • 28
0
votes
2 answers

How to get the data of a query in arangojs

Hello I'm using arangojs, created a database, added data to the collection beusers. Now I want to read the added data. In ArangoDB I can do so using the query FOR user IN beusers FILTER user.password == '3670747394' && user.email ==…
pgalle
  • 216
  • 3
  • 13