Name of the View.
Creates a View with the given options
and the instance's name.
See also createView.
const db = new Database();
const view = db.view("potatoes");
await view.create();
// the ArangoSearch View "potatoes" now exists
Retrieves general information about the View.
const db = new Database();
const view = db.view("some-view");
const data = await view.get();
// data contains general information about the View
Retrieves the View's properties.
const db = new Database();
const view = db.view("some-view");
const data = await view.properties();
// data contains the View's properties
Renames the View and updates the instance's name
to newName
.
Additionally removes the instance from the Database's internal cache.
Note: Renaming Views may not be supported when ArangoDB is running in a cluster configuration.
const db = new Database();
const view1 = db.view("some-view");
await view1.rename("other-view");
const view2 = db.view("some-view");
const view3 = db.view("other-view");
// Note all three View instances are different objects but
// view1 and view3 represent the same ArangoDB view!
The new name of the View.
Replaces the properties of the View.
const db = new Database();
const view = db.view("some-view");
const result = await view.replaceProperties({
consolidationIntervalMsec: 234
});
console.log(result.consolidationIntervalMsec); // 234
Optional
properties: PropertiesNew properties of the View.
Updates the properties of the View.
const db = new Database();
const view = db.view("some-view");
const result = await view.updateProperties({
consolidationIntervalMsec: 234
});
console.log(result.consolidationIntervalMsec); // 234
Optional
properties: PropertiesProperties of the View to update.
Generated using TypeDoc
Represents a View in a Database.