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

ArangoDB- Can I use foxx to make an audit service to log all changes

On a high level perspective, I would like to log all changes of a collection. My first approach is to use another foxx service: Let's say I have foxx service A. In A, I perform delete operation. I would like to log the data of the deleted one…
Loredra L
  • 1,485
  • 2
  • 16
  • 32
0
votes
1 answer

What is "Session/Cookie Transport"?

I'm building an app with ArangoDB. In the manual, it says that there is something called Cookie transport and Session transports. https://docs.arangodb.com/3.0/Manual/Foxx/Sessions/Transports/Cookie.html It seems that these are equilent to cookies…
HelloWorld
  • 973
  • 2
  • 9
  • 23
0
votes
1 answer

AQL template in arango Foxx does not work correctly with array

The below query would not work if I used an array but work normally if we use a string to construct the snippet. Did I make a mistake somewhere or is this one is a bug related to arango? var array=["1","2"] //Make a snippet depend on array. var…
Loredra L
  • 1,485
  • 2
  • 16
  • 32
0
votes
1 answer

Create a query params with combobox in Foxx

I wonder if I can create a query param that take multiple values from dropdown just like a non-typing combobox in the UI of ArangoDB. For example //A route.... .queryParam('A', joi.any().allow(["true","false,"haha"]).required().default("true")) The…
Loredra L
  • 1,485
  • 2
  • 16
  • 32
0
votes
1 answer

ArangoDB: Use an objects as a filter and build AQL with aql builder

I have an objectlike this { prop1: true, prop2: "string", prop3: number } I give this object to Foxx in order to use its properties as filters for arango query. I use an query builder as of the following var qb = require('aqb'); var…
Loredra L
  • 1,485
  • 2
  • 16
  • 32
0
votes
1 answer

Foxx services: Many or one?

I'm evaluating ArangoDb+Foxx for a multi-tenant application. Currently I have a coordinator service in _system that creates new databases and installs a single service into that db that bootstraps it and serves as the api layer. Are there…
Jonathan Dumaine
  • 5,575
  • 3
  • 38
  • 50
0
votes
2 answers

Database TypeError in ArangoDB with node.js

Applying this tutorial without Foxx : http://www.ashishblog.com/getting-start-with-arangodb-using-nodejs-nodejs-ejs-arangojs/ Node.js 8.11.1 (x64) arangoDB 3.3.7-1_win64 arangojs@6.2.4 ERROR MESSAGES IN THE BROWSER @…
0
votes
1 answer

How to develop foxx services using arangodb web interface

I am creating foxx services, right now I am doing it in VS Code and uploading the zip file in the services section with a mount point in DEVELOPMENT mode. Now I want to quick edit the foxx service in web interface itself. I was reading this possible…
rv.comm
  • 675
  • 1
  • 7
  • 10
0
votes
0 answers

Foxx with GraphQL doesn't work

I followed that instruction ArangoDB Foxx example (an example that is described as working by copy & paste) to learn how to use Foxx and GraphQL, but I have errors: at Object.…
Kamil
  • 49
  • 1
  • 5
0
votes
2 answers

ArangoDB (3.1.18) authentication not working for localhost with Reverse proxy

I setup an ArangoDB on a webserver (Windows with IIS) and intend to expose it with a reverse proxy via IIS to the web, but I want the client to be forced to use authentication. I cannot find a way of accessing FOXX services with required…
Anytoe
  • 1,605
  • 1
  • 20
  • 26
0
votes
1 answer

Object Array data type

This AQL returns an object I would like to use. const keys = db._query(aql` FOR huis IN test FILTER huis._key in ${req.queryParams.keys} RETURN { 'key': huis._key, 'adres': huis.adres, 'postcode': huis.postcode, …
Thijs
  • 1,423
  • 15
  • 38
0
votes
1 answer

Foxx service logging

Following the documentation, it should be possible to log from a Foxx service. https://docs.arangodb.com/2.8/Foxx/Develop/Console.html (looks like this is for an old version and missing in doc for newer versions) In my script is a console.info("this…
Thijs
  • 1,423
  • 15
  • 38
0
votes
1 answer

Foxx Service Array handling

I have a database with documents and I would like to retrieve some data from it providing an array of keys to a Foxx service. It works using a single string but I'm missing something about implementing arrays. UPDATED router.get('/keys', function…
Thijs
  • 1,423
  • 15
  • 38
0
votes
1 answer

How to call ArangoDB Foxx applications from arangodb-php

With ArangoDB-PHP I can easily run AQL querys, but is it possible to use (means "execute") Foxx applications (i.e. when I install foxx/util-sessions-local from https://github.com/arangodb-foxx/util-sessions-local) - how to use the…
hwde
  • 353
  • 2
  • 6
0
votes
1 answer

Executing shell commands from a Foxx app

I need to execute a binary library (ffmpeg) from out of Foxx app. I see there is a built-in child_process module, but it doesn't have an exec method like Node.js has. Is there any other way to do so? Thanks in advance
artnikpro
  • 5,487
  • 4
  • 38
  • 40
1 2 3
8
9