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

Is it possible to use inheritance in Foxx models?

I am developing a REST API using ArangoDB and Foxx. A pattern that keeps coming back in multiple models is the following: const NewAccount = Foxx.Model.extend({ schema: { name: Joi.string().required(), ... multiple properties }}); When I…
bmotmans
  • 15,650
  • 5
  • 20
  • 14
1
vote
1 answer

ArangoDB Foxx Model date timestamp not working

I'm trying to setup a message collection in ArangoDB that timestamps when the message was entered. However, when I setup the model in foxx it won't work if I set joi.date() or joi.date().timestamp() in the model schema. I've tried to use the…
JoeS.
  • 31
  • 1
  • 4
1
vote
1 answer

Connecting to Foxx app as TCP bridge?

I'm currently setting up my Foxx app as a GraphQL API endpoint and I would need to connect to it from the browser and the Node backend. There is an arango.client npm package that I'm thinking to install for my backend but it seems that it only…
artnikpro
  • 5,487
  • 4
  • 38
  • 40
1
vote
2 answers

ArangoDB key value to store Google certificates

how do I use promised key value storage in ArangoDB? I want to store Google Certificates in ArangoDB in most effective way or better - most convenient way, which would be associative array resp. key-value. But i can not find anything about it in…
Márius Rak
  • 1,356
  • 2
  • 15
  • 35
1
vote
1 answer

ArangoDB Model Events Not Fired with Repository

I'm exporting a model as in the below: var Foxx = require("org/arangodb/foxx"); var myNewModel = Foxx.extend( { schema:{...} }, { beforeSave: function() { throw new Error('reached before save'); } }); And using it in a controller…
gph
  • 1,045
  • 8
  • 25
1
vote
1 answer

How to get Mocha-tests for Foxx to run

I'm trying (and failing) to get my foxx-tests to run, following the cookbook "Testing Foxx Apps". The tests cannot be found ( show modal with "Completed 0 tests in 0ms ( 0 / 0 / 0 ) No tests found" ). In order to identity the problem, I tried to…
Julian
  • 1,050
  • 1
  • 12
  • 23
1
vote
1 answer

ArangoDB Foxx Repository JSON Parsing issue

I've a problem in parsing a JSON message in my Foxx application in ArangoDB. This is the code for the "post" in the controller: controller.post('/', function (req, res) { var message = req.params("testCollection"); var data =…
alfven
  • 147
  • 8
1
vote
1 answer

Arangodb javascript cursors db._query()

I'm using arangodb cursor through javascript client db._query('query', {param: value}) My query contains limit operator and I need a total count. How can I pass fullCount option into cursor and read extra.fullCount back.
drgraduss
  • 371
  • 2
  • 13
1
vote
2 answers

ArangoDB Foxx pathParam is undefined

Made a new Foxx app with the Web UI and added the following route: controller.get('/names/:name', function (request, response) { var name = request.params('name'); response.json(db._query( "FOR x IN collection"+ " FILTER x.name == " +…
reoh
  • 282
  • 5
  • 12
1
vote
1 answer

Installing ArangoDB Foxx via RESTful API via Python requests results in 'unauthorized' error

We use ArangoDB and Python using the requests module to use Arango's HTTP API. I'm having authorisation problems deploying a Foxx app programically via the HTTP API which we'd like to do as part of our automated testing process. The only program…
mousetummy
  • 13
  • 2
1
vote
2 answers

ArangoDB search by string field

I want to do a simple search by text in a specific field of a specific collection in ArangonDB. Something like this ( in SQL ): SELECT * FROM procedures WHERE procedures.name LIKE '%hemogram%' I need to search in a string field of object (…
Pavarine
  • 637
  • 3
  • 15
  • 30
1
vote
1 answer

Foxx dependencies import by name, not by mounting point

As far as I understand from reading this snippet in this documentation regarding 'Defining dependencies': will allow using any app to be used to meet the dependency. sessions or sessions@* will match any app with the name sessions (such as the…
1
vote
2 answers

Validating array items with joi in a Foxx app

I am having problems with using joi array-item validation in foxx applications as well as the arango-shell with arangodb-2.5.5. The joi-documentation suggests to use something like: var Joi = require('joi'); Joi.array().items({'name':…
Markus Ebner
  • 148
  • 9
1
vote
1 answer

How to read data from collection in an ArangoDB Foxx app?

I have a collection called 'user' and 1 document in it: { "username": "test1", "password": "pw1", "id": "1" } I created a Foxx app and trying to follow the documentation (using 2.6.0a3). This is my controller: var Foxx =…
rollingBalls
  • 1,808
  • 1
  • 14
  • 25
1
vote
2 answers

Opening Foxx API to local network

I have setup serverend points they work for the web interface fine but the api endpoint for my for app do not even give a error and does not time out. I have tried turn the app to production mode in the web interfaces no joy. I look at the doc for…
kevin
  • 63
  • 4
1 2 3
8 9