Questions tagged [foxx]

ArangoDB Foxx can serve as a lean application server in any single page application. Create your single page app using the database, JavaScript, HTML, CSS and images, store everything in ArangoDB’s apps directory and voilà–you are done. It’s simple, rapid and all JavaScript.

ArangoDB Foxx can serve as a lean application server in any single page application. Create your single page app using the database, JavaScript, HTML, CSS and images, store everything in ArangoDB’s apps directory and voilà–you are done. It’s simple, rapid and all JavaScript.

133 questions
1
vote
0 answers

Add edge when inserting document in ArangoDb FOXX

I have a document collection "Projects", a document collection "Sheets" and a edge collection "ProjectToSheets". When posting a new sheet I want to insert the sheet in the sheet collection and add an edge between the (existing) project and the new…
Sven Bardos
  • 872
  • 10
  • 27
1
vote
1 answer

ArangoDB: Transaction restrictions within Foxx service

I'm trying to find documentation describing restrictions on what can be safely accessed from within a transaction running within a javascript Foxx micro-service. I had read somewhere (can't find it now) that you can't access anything except what is…
Dale
  • 141
  • 9
1
vote
1 answer

Why in ArangoDB module.context.collection return null

I'm trying to learn how to develop Foxx services. There are many examples where people use: const someCollection = module.context.collection('someCollectionName'); But in my project this code doesn't work. someCollection always null, but it's exist…
MrDuDuDu
  • 534
  • 5
  • 12
1
vote
0 answers

ArangoDB - Get results returned from Traverser steps

Is it possible to get back results from a Traverser step in ArangoDB / Foxx service? I'm looking to implement ohmic resistance calculations on a power grid graph. Herein I traverse BFS (breadth-first) down the graphs' edges to it's leafs. - No…
vlabmichl
  • 43
  • 4
1
vote
0 answers

Error while execute arangod 3.2 in centos 6.9

I try to execute arangodb 3.2 (version updated) in my server centos 6.9 but don't work, what I can do for fixing it?. [root@user ~]# arangod 2017-08-18T20:01:34Z [8419] INFO ArangoDB 3.2.1 [linux] 64bit, using jemalloc, VPack 0.1.30, RocksDB 5.6.0,…
cethap
  • 101
  • 4
1
vote
0 answers

ArangoDB Nonce Workflow

The ArangoDB docs discuss a couple nonce functions here: https://docs.arangodb.com/3.1/Manual/Appendix/JavaScriptModules/Crypto.html I understand the idea that I would create a nonce, send it to the client, hash a password with the nonce and send it…
skinneejoe
  • 3,921
  • 5
  • 30
  • 45
1
vote
0 answers

Proxy requests through Node to ArangoDB Foxx

I'm attempting to utilize the session management capabilities of ArangoDB Foxx, but I'm struggling a bit to understand the workflow. I've created some API's in Foxx and I want those API's to be called by the client. However, I understand that in…
skinneejoe
  • 3,921
  • 5
  • 30
  • 45
1
vote
1 answer

How to post an array of json objects in Foxx to arangodb

I am trying to create a simple existing microservice in Foxx with arangodb. I have followed the getting started but I am pretty new to javascript so I am sure this is very simple. const db = require('@arangodb').db; const errors =…
RHSMan
  • 157
  • 2
  • 15
1
vote
2 answers

How to resolve ArangoDB Foxx deadlocking problems?

Under testing, our Foxx app is getting into "deadlock detected" problems. These seem to be caused by traversal queries. Apriori, it is difficult if not impossible to know which tables will be used during traversal. However, I did take one specific…
ggendel
  • 403
  • 3
  • 9
1
vote
2 answers

Sending HTTP Post request from node to Foxx service (ArangoDB)

I am trying to send a post request from a node + express server to my Foxx service on Arangodb. On the node side : var route = arangopi + '/edge/' + col.name ; var body = {data: data, from: fromId, to: toId} ; console.log('|| body :', route, body)…
user6403833
  • 269
  • 5
  • 13
1
vote
0 answers

Authentication for foxx APIs

I am working on ArangoDB 3.1 in stand-alone mode. We are creating a Foxx API to authenticate the users who are accessing our database and our custom APIs. In order to activate authentication, we added the following statements in the arangod.conf…
1
vote
1 answer

Error while installing arrangoDB application using foxx manager

I have created EC2 instance on AWS with Ubuntu(14.04). I am trying to install arangodb application using foxx manager on this. I have connected to it using putty. I have installed the arangodb using sudo apt-get install arangodb. I have also got…
bhushan patil
  • 103
  • 11
1
vote
2 answers

Foxx: How not having to define queryParams up front?

I am getting myself up to speed with ArangoDB and Foxx, and so far the experience has been great! I have however one question: For the Foxx router one can specify queryParams, for instance /graph/nodes?eyes=blue&hair=blond. What bothers me though…
Willem van Gerven
  • 1,407
  • 1
  • 17
  • 24
1
vote
1 answer

ArangoDB - How to get relations between 2 collections

I have 2 vertex collections: users articles and 1 edge collection: userfollow (relation between user following other users) The problem is when user follow other users and the followed users wrote some articles, how to get the articles based on…
xhadix
  • 13
  • 5
1
vote
1 answer

Foxx router just doesn't working

I'm currently trying to migrate my code from ArangoDB v2.8 to v3.0.1 and I'm stuck with routes. I have a simple route like: const router = require('@arangodb/foxx/router')() router.get('/hello', function (req, res) { res.json({ hi: 'world'…
artnikpro
  • 5,487
  • 4
  • 38
  • 40
1 2 3
8 9