1
0
Fork 0
arangodb/Documentation/Books/Manual/DataModeling/Views
sleto-it 991aacd8a5
Doc - ArangoSearch - Fix broken link (#4591)
2018-02-14 21:02:46 +01:00
..
DatabaseMethods.md Doc - Adds toc plugin (#4577) 2018-02-13 19:04:32 +01:00
README.md Doc - ArangoSearch - Fix broken link (#4591) 2018-02-14 21:02:46 +01:00
ViewMethods.md Doc - Adds toc plugin (#4577) 2018-02-13 19:04:32 +01:00

README.md

JavaScript Interface to Views

This is an introduction to ArangoDB's interface for views and how to handle views fron the JavaScript shell arangosh. For other languages see the corresponding language API.

Address of a View

All views in ArangoDB have a unique identifier and a unique name. ArangoDB internally uses the view's unique identifier to look up views. This identifier, however, is managed by ArangoDB and the user has no control over it. In order to allow users to use their own names, each view also has a unique name which is specified by the user. To access a view from the user perspective, the view name should be used, i.e.:

View

db._view(view-name)

A view is created by a "db._createView" call. The returned object may then be used via the exposed methods.

For example: Assume that the view identifier is 7254820 and the name is demo, then the view can be accessed as:

db._view("demo")

If no view with such a name exists, then null is returned.

Create

db._createView(view-name, view-type, view-properties)

This call will create a new view called view-name. This method is a database method and is documented in detail in Database Methods

View Types

The currently supported view implementation is: arangosearch as described in ArangoSearch View.