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

Foxx/ArangoDB: Can you create a response that adhere to JSON API specification?

I am currently writing some micro services with Foxx to be consumed by Ember.js. Ember data plays very nicely with JSON API (http://jsonapi.org) responses. So I tried to serialize the Foxx responses with the json-api-serializer…
JPS
  • 74
  • 6
3
votes
2 answers

ArangoDB Foxx and Clojure script

I'd like to implement a Foxx service using ClojureScript. I've read that one can use Typescript and Coffeescript by running the transpiler during each development step; Can I do similar for ClojureScript?
dothebart
  • 5,972
  • 16
  • 40
3
votes
1 answer

How to define an index in ArangoDB FOXX?

Can a FOXX application automatically create an index? I have a collection (model) where I need a field to be used as a unique index for performance. I could create the hash after the fact, but I just wanted to be sure it wasn't available using the…
ggendel
  • 403
  • 3
  • 9
3
votes
1 answer

ArangoDB FOXX logging: how to

Is there a way to create my log file on the filesystem where to log some actions in FOXX applications? Any javascript module is required?
alfven
  • 147
  • 8
3
votes
1 answer

Foxx model schema with nested objects

All the examples I've found for Foxx.Model schemas are flat - i.e. they don't include nested objects. I'm trying to add a hash to save geo info on a model like this: var Foo = Foxx.Model.extend({ schema: { name: joi.string().required(), …
asm
  • 63
  • 1
  • 5
3
votes
1 answer

Getting Started with Foxx and ArangoDB on Windows - "errorMessage":"unknown path"

Yes part of the problem is I don't have a Mac Pro ;) And the demo are done on Macs. I can get the "Hello World" app to run, loading it via the web interface and accessing via: http://localhost:8529/_db/Test1/hello-foxx But I cannot seem to get any…
user1541413
  • 307
  • 4
  • 17
2
votes
0 answers

ArangoDB 3 CRUD in Angular 7

I have an Angular 7 project up am running in production and I’m trying to determine the best way to connect to ArangoDB securely for CRUD operations. I’m looking for a best approach and working code example. Everything out there seems to be for…
Matthew Skopek
  • 61
  • 1
  • 1
  • 4
2
votes
1 answer

Arangodb: Concept of module context

I do not really understand the concept of "module context" of one service in arangodb. https://docs.arangodb.com/3.3/Manual/Foxx/Context.html Can anyone give an simple example where this "context" should be used?
Loredra L
  • 1,485
  • 2
  • 16
  • 32
2
votes
1 answer

Arangodb. Using cursor to send back data in Foxx service

In a foxx service, normally the response is send back using res.send("Whatever"); But in the case of my data to send back is huge thus, I want to imitate the behavior of cursor(send in several smaller chunk), how can I do it?
Loredra L
  • 1,485
  • 2
  • 16
  • 32
2
votes
0 answers

Does ArangoDB Foxx support auto scaling of microservices?

Does ArangoDB Foxx support auto scaling of microservices? Can I configure Foxx to increase deployed instances of a specific microservice?
rv.comm
  • 675
  • 1
  • 7
  • 10
2
votes
1 answer

Arangodb/Foxx how to split routes in different files?

How could I split the routing into different files? This what I tried, but did not work: // file 'index.js' as main in manifest.json const createRouter = require('@arangodb/foxx/router'); const router = createRouter(); const entries =…
Hayo
  • 149
  • 8
2
votes
1 answer

arangodb 3.1 foxx docs?

I think that arangodb is presently the best nosql db and that foxx microservices are a great resource. Alas, the related docs that comes with the 3.xxx version can help build only a minimalistic service. Also, many apps you can find as examples in…
mre
  • 95
  • 1
  • 7
2
votes
1 answer

ArangoDB: Create a new Foxx service via API

A core requirement of my application is the ability to automatically deploy ArangoDB with all collections, graphs, data, and APIs. The HTTP API and the various wrappers have been sufficient for this so far, but I haven't been able to find an API for…
Nate Gardner
  • 1,577
  • 1
  • 16
  • 37
2
votes
1 answer

ArangoDB: Foxx session middleware conflicts with CORS

I'm having a bit of a problem getting a Foxx microservice inside ArangoDB 3.0.4 with authentication to run. The Foxx microservice uses the session middleware to handle authentication. It does that by storing a JWT inside the X-Session-Id header…
JonasB
  • 131
  • 1
  • 9
2
votes
1 answer

Programmatically creating edges in ArangoDB

What is the simplest way to quickly create edges in ArangoDB programmatically? I would like to create relationships between documents based on a common attribute. I'd like to be able to select an attribute, and for every document in collection A,…
Nate Gardner
  • 1,577
  • 1
  • 16
  • 37
1
2
3
8 9