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

AQL: Bind parameter on operator

Is there a way to have bind parameter on operator ("<", "<=" etc ...) ? I'm working on a Foxx service. Example : const operator = '<' const res = query` FOR v IN myCollection FILTER v.value ${operator} ${maxValue} ` I can do it with db._query…
Erwan
  • 327
  • 4
  • 12
1
vote
1 answer

What kind of object db._collections() return ArangoDB?

In Foxx context, I am using the database methods to access all collections in arango db._collections(). The return value is an array. But within the array, each "object" is not a string, not an array, not an object.What is their type? Example…
Loredra L
  • 1,485
  • 2
  • 16
  • 32
1
vote
1 answer

Can Foxx call a query defined in ArangoDb?

I can't find out if it's possible to invoke AQL queries set up on the ArangoDb web UI in Foxx script - rather like stored procedures can be called by services of a RDMS. So far all examples I've seen show the AQL embedded into the Foxx services…
JSColeman
  • 11
  • 1
1
vote
1 answer

How to run a sequnce of AQL queries in arangodb

I am a newbie and trying to get going on ArangoDB.I want to run a batch of AQL queries which would be interdependent on each other. I want to do the same things we do in PL-SQL. I tried clubbing two or more queries in one post/get request through…
1
vote
1 answer

aql.literal is not a fucntion in arangoDB Foxx

I have a Foxx route like the following const aql = require('@arangodb').aql; route.get('ABC'){function(req,res){ //Do some stuffs var AnArray1=req.queryParams.AnArray1||[DefaulArray] var…
Loredra L
  • 1,485
  • 2
  • 16
  • 32
1
vote
1 answer

Does the consistance of collections in a graph in ArangoDB guaranteed?

Let say I have a collection node N and a edges collection E. Together , I created a graph G from N and E. In the document, Arango guarantee the consistency of graph G such as no dangling edges when nodes are deleted, etc. Does this consistency hold…
Loredra L
  • 1,485
  • 2
  • 16
  • 32
1
vote
1 answer

How to have a Foxx service use base collection instead of mount specific ones

How can I have a Foxx service use base collections for auth operations? For example I want the User management tutorial at https://docs.arangodb.com/3.3/Manual/Foxx/Users.html to use collections "users" and "sessions" instead of "test_users" and…
Rishav Sharan
  • 2,763
  • 8
  • 39
  • 55
1
vote
2 answers

Auto scaling resources for foxx/arangodb on mesos

Is it possible to separately autoscale foxx and arangodb independently of each other in liu of trying to strike balance, and sure enough autoscale right amount of ram/storage/cpu? Simply if it's a good idea to try and autoscale deployment is answer…
janat08
  • 1,725
  • 2
  • 16
  • 27
1
vote
1 answer

Arangodb change default foxx service path

Hi everyone Does anybody know how to change the path of a defined foxx service. I would like to have something like "IP/login" and "IP/register". By default it is accessible under "_db/..." path. The only way I found was to use a Webserver Like…
justice
  • 306
  • 2
  • 12
1
vote
0 answers

What does "ArangoError 4: Builder value not yet sealed" exactly mean, when making a transaction in Foxx?

I am trying to implement transactions in my Foxx app, I am using classes to manage database objects and have being trying to use these classes in the transaction action. I cannot manage to go past that error message, I am including in the…
Milko
  • 41
  • 2
1
vote
1 answer

Is it possible to extend Joi schema in ArangoDB Foxx?

I have made an extension of a Joi type and successfully tested it on a test Node.js application. I am trying now to incorporate this extension in Foxx, since it supports Joi, but it doesn't seem to work: calling "Joi.extend(extension)", which works…
Milko
  • 41
  • 2
1
vote
1 answer

Pull/Import Data into ArangoDB from an External Database

I've produced a Proof of concept to automate the export of data out of an external database and save it as a file to then import into ArangoDB using arangoimp.exe. While this method is certainly functional it is unfortunately not going to work due…
Code Novice
  • 2,043
  • 1
  • 20
  • 44
1
vote
1 answer

ArangoDB Foxx Service - Failed to load API definition

I am using arangoDB 3.3.3 on macOS. With the intention to output a JSON-collection from arangoDB via the browser, i am using the Foxx microservice tool, which is offered by arangoDB. I imported the json-file to the database via the offered import…
David
  • 41
  • 5
1
vote
1 answer

How to restrict access to certain Foxx service arangodb

For example, I have 2 services A and B. I would like to expose A that everyone can use and B as restricted to "root" user stored in arangodb. Does arangodb support it?
Loredra L
  • 1,485
  • 2
  • 16
  • 32
1
vote
1 answer

How to use graphs in Foxx?

I have created a graph in ArangoDB. It is possible to access the graph from Foxx? I can create graph in following way: var graph_module = require("@arangodb/general-graph"); var graph = graph_module._create("myGraph"); But there is not a method…
Kamil
  • 49
  • 1
  • 5
1 2 3
8 9