Comments on: Reusable Foxx Apps with Configurations: ArangoDB Development https://arangodb.com/2015/05/reusable-foxx-apps-with-configurations/ The database for graph and beyond Tue, 25 Jun 2024 12:12:14 +0000 hourly 1 https://wordpress.org/?v=6.7.1 By: Alan Plum https://arangodb.com/2015/05/reusable-foxx-apps-with-configurations/#comment-572 Wed, 13 May 2015 15:43:00 +0000 http://www.arangodb.com/?p=7560#comment-572 In reply to CoDEmanX.

Yes, it’s documented in devel. See the chapter on the manifest file (“metainformation”).
1. Yes, the attribute is called “default”.
2. Yes, the type is validated when the configuration is modified.
3. Currently nesting and object/array values are not supported. This may change in the future, but for now you can use type:string and parse the value yourself.

]]>
By: CoDEmanX https://arangodb.com/2015/05/reusable-foxx-apps-with-configurations/#comment-571 Tue, 12 May 2015 21:39:00 +0000 http://www.arangodb.com/?p=7560#comment-571 Very nice! Is there documentation yet in devel? My questions:
1. How to specify a default value (attribute called “default”)?
2. What is the “type” for? Is there some kind of auto-validation?
3. Is nesting supported? Like this:
{“configuration”: {“MyAPI”: {“keycode”: {“description”: “…”, “type”: “string”}}}}
// appContext.configuration.MyAPI.keycode

]]>