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

Joi validation when update (patch) in Foxx

I use arangodb 3.0.2 and have problem with joi validation when update/patch schema. I have user schema like this _key: joi.string(), name: joi.string().required(), username: joi.string(), email: joi.string().required(), profilePicture:…
de_3
  • 3,389
  • 5
  • 20
  • 14
2
votes
1 answer

ArangoDB-Foxx with Relay Framework

Can anyone tell me or point me to the link about how to use ArangoDB-Foxx along with Relay Framework (or to be specific: relay-fullstack)? I've looked everywhere and got no luck. I have a Relay project using relay-fullstack and I want to make it…
asubanovsky
  • 1,608
  • 3
  • 19
  • 36
2
votes
1 answer

Testing ArangoDB Foxx app from CLI

Currently, I'm running Mocha + Chai tests using Foxx web interface. It works well but I'd prefer to use Mocha's command line interface if that's possible. Is there any way to do so?
artnikpro
  • 5,487
  • 4
  • 38
  • 40
2
votes
2 answers

Using GraphiQL with Foxx

With NodeJS, there is graphQLHTTP from express-graphql which can be passed like the following: const {Schema} = require('./data/schema'); const graphQLApp = express(); graphQLApp.use('/', graphQLHTTP({ graphiql: true, pretty: true, …
asubanovsky
  • 1,608
  • 3
  • 19
  • 36
2
votes
1 answer

ArangoDB FOXX node extensions

I'm trying to move an application from sails to FOXX. I was expecting that I could use node.js modules in FOXX but I ran into a problem. I need to create a "working" directory on the server to perform operations to SCM repositories. I installed…
ggendel
  • 403
  • 3
  • 9
2
votes
1 answer

ArangoDb Foxx joi validate unknown keys

I am using ArangoDb 2.7.1. I am trying to implement a "flexible" Foxx Model that will have a Joi schema containing some Required and Optional attributes. In addition, I need to persist unknown keys, not defined in the schema. Foxx model caters for…
Tim Beck
  • 23
  • 4
2
votes
1 answer

Arango/Foxx server static file

After look though the Arango doc's could not find clear as to how to server a html file. This is the only case where I planning using Arango to server a file as Nginx does much better job but Arango hold the data need to known if this page should be…
kevin
  • 63
  • 4
2
votes
1 answer

Access environment variables from Foxx

Is there something like node’s process.env to access environment variables? I want to know in my Foxx code whether it's running in development, test, staging, or production. Alternatively, is there any way to determine if my Foxx app is running in…
2
votes
1 answer

Recompiling JS in the arangodb codebase? (trying to hack sth into Foxx)

I've made a change to a .js file in the arangodb codebase and did a make clean && make and restarted arangod, but the change doesn't seem to be picked up. How do I make sure the change is activated? The changed file was:…
stackmagic
  • 164
  • 8
2
votes
1 answer

Can I create javascript function from remote in arangodb

I have a remote application where users writes queries for arangodb. I want a way to interact with arangodb from REST interface and create the scripts as javascript function. Is it possible? For example: script1 …
Deepak Agarwal
  • 907
  • 6
  • 21
2
votes
1 answer

Proper way to test Foxx apps in ArangoDB

I would like to know what is supposed to be the proper way to test Foxx applications in ArangoDB. My project structure (simplified) is something like the following: /frontend /* AngularJS webapp */ /backend /* Foxx controllers, models and…
jarandaf
  • 4,297
  • 6
  • 38
  • 67
2
votes
1 answer

Can't switch to database other than _system within Foxx

I'm trying to dynamically generate databases/collections on application startup, in case they do not exist yet. This works fine when working with the _system database. The thing is that it seems not to be allowed when trying to switch to other…
jarandaf
  • 4,297
  • 6
  • 38
  • 67
2
votes
1 answer

Can't deploy hello-foxx app using Foxx-Manager

I've been playing around with ArangoDB for a while and tried to follow this guide on how to deploy Foxx apps using Foxx-Manager. The thing is that I can't deploy a simple example app using Foxx-Manager. I try to install it by using the following…
jarandaf
  • 4,297
  • 6
  • 38
  • 67
1
vote
0 answers

How to validate Oauth access token in foxx framework

I am using Identityserver4 for user Authentication. i am not able to find right solution to validate access token at services. (Using Foxx framework to build micro services.) How can i Validate IdentityServer(OAUth) access token in foxx…
SubbaReddy
  • 11
  • 2
1
vote
0 answers

How to provide authentication credentials to foxx integration tests

I'm writing integration tests for Foxx service on ArangoDB, similar as described in documentation However my ArangoDB server is configured with authentication-system-only=false, which means I need to use ArangoDB authentication to use Foxx service.…
Greenmaid
  • 111
  • 3
1 2
3
8 9