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
1 answer

Arango query I have it working in the shell but can't getting working in Arango/Foxx

db.broad_broad.byExample({"location":"space_1"}).toArray() with my database this returns [ { "_id" : "broad_broad/416394873974", "_key" : "416394873974", "_rev" : "554852115738", "location" : "space_1", "space_1" : { …
kevin
  • 63
  • 4
1
vote
2 answers

Foxx apps debugging workflow?

What is the recommended workflow to debug Foxx applications? I am currently working on a pretty big application and it seems to me I am doing something wrong, because the way I am proceeding does not seem to be maintanable at all: Do your changes…
jarandaf
  • 4,297
  • 6
  • 38
  • 67
0
votes
0 answers

Retrieve the result of a Foxx activity scheduled as a job

Which is the best way to retrieve, in a second time, the result of a scheduled job executed by a Foxx activity? The only way that I have found is to store the job result within the success function callback storing it into a dedicated collection or…
Jermakki
  • 31
  • 5
0
votes
1 answer

Foxx service erroring out

I am fairly new to this, so I wrote my first Foxx service and not seeing where the issue is. It supposed to query a collection and return back a single string value. Getting "errorMessage": "Internal Server Error" back for the code below. 'use…
Roman
  • 11
  • 4
0
votes
1 answer

ArangoDB Foxx Service ReferenceError: URL is not defined

I'm trying to install a service to ArangoDB with the Foxx CLI but I get an error when using joi as a dependency. The full stack trace is below: Server encountered errors executing a JavaScript file: @…
JonasLevin
  • 1,592
  • 1
  • 20
  • 50
0
votes
1 answer

Body parameter in ArangoDB

I wrote the following router in Foxx Microservices: router.post('/PersonInformation', function (req, res) { const keys = db._query(aql` FOR p IN Personal FILTER (p.stateId IN ${req.queryParams.statePar} OR…
Ghasemi
  • 15
  • 4
0
votes
1 answer

ArangoDB AQL Fragments Issue

I'm working on building a complex searching query which allows the user to search the database on multiple values simultaneously. The form submits all of the fields (whether holding data or not) which looks something like (simplified): { …
Justin
  • 524
  • 5
  • 19
0
votes
1 answer

Foxx arangodb runs into memory limit

I have an simple query runs inside foxx For u in collection Filter u.someIndexedSparseFiler !=null Return {_id:u._id} This will return millions+ results. In the logs, arango have a message of limited memory heap reached and terminate the…
Loredra L
  • 1,485
  • 2
  • 16
  • 32
0
votes
0 answers

How to create JWT token in arangodb by using foxx microservices?

I need to create JWT token for authentication (login) and expire it on logout. So what is the procedure for it ? I am using foxx micro services to do database manipulation. JWT token must be created by using service and token will be expire when…
0
votes
2 answers

ArangoDB Foxx: require() returned undefined

I created an ArangoDB Foxx service, and successfully mounted it on some route using Foxx CLI. My service has a dependency which uses randombytes. When I call the service it returns an error saying `randomBytes is not a function. For testing purposes…
Tigran Sahakyan
  • 363
  • 1
  • 5
  • 10
0
votes
1 answer

ArangoDB comparison of documents in different databases

I'm interested if it's possible to compare two documents with the same "_id"s (same collections names and "_keys") which are stored in different databases. My use case is a custom "map / layout engine" that is "mainly" fed by "automatic import /…
vlabmichl
  • 43
  • 4
0
votes
1 answer

How to dockerize Foxx services?

I use ArangoDB as a backend server for my web application. So far I have used the Foxx CLI to deploy my code to the ArangoDB server. I wanted to deploy my entire application using Docker, but I can't figure out how to add my Foxx service source…
0
votes
1 answer

How to log something in ArangoDB Foxx Test?

I'm currently testing Foxx service in ArangoDB : https://docs.arangodb.com/3.4/Manual/Foxx/Guides/Testing.html In order to help debugging i want to log the response body. I tried to use console.log : describe('test of action service', function(){ …
Brice Favre
  • 1,511
  • 1
  • 15
  • 34
0
votes
1 answer

V8 crashes due to memory after running traversal in loop

I was running an Foxx app under arangoDB 3.3.11. A stressed test was conducted in similar manner; var traverser=new traversal.Traverser(config); //Loop through an list of entities and do traversal on each of them BigArray.forEach(function(e){ var…
Loredra L
  • 1,485
  • 2
  • 16
  • 32
0
votes
1 answer

Traversal inside another traversal arangodb

I was wondering if it is possible/recommend to perform an traversal inside the config.visitor of another traversal in Foxx? Would be there any possible lockings/conflicts? For side info, my task is to traverse between group of nodes. And in order to…
Loredra L
  • 1,485
  • 2
  • 16
  • 32
1 2 3
8 9