mirror of https://gitee.com/bigwinds/arangodb
48 lines
838 B
Markdown
48 lines
838 B
Markdown
---
|
|
layout: default
|
|
description: These functions implement theHTTP API for views
|
|
---
|
|
|
|
# View API
|
|
|
|
These functions implement the
|
|
[HTTP API for views](../http/views.html).
|
|
|
|
## Getting information about the view
|
|
|
|
See the
|
|
[HTTP API documentation](../http/views.html)
|
|
for details.
|
|
|
|
## ArangoView.exists
|
|
|
|
`ArangoView.exists() : boolean`
|
|
|
|
Checks whether the view exists
|
|
|
|
**Examples**
|
|
|
|
```Java
|
|
ArangoDB arango = new ArangoDB.Builder().build();
|
|
ArangoDatabase db = arango.db("myDB");
|
|
ArangoView view = db.view("potatoes");
|
|
|
|
boolean exists = view.exists();
|
|
```
|
|
|
|
## ArangoView.getInfo
|
|
|
|
`ArangoView.getInfo() : ViewEntity`
|
|
|
|
Returns information about the view.
|
|
|
|
**Examples**
|
|
|
|
```Java
|
|
ArangoDB arango = new ArangoDB.Builder().build();
|
|
ArangoDatabase db = arango.db("myDB");
|
|
ArangoView view = db.view("potatoes");
|
|
|
|
ViewEntity info = view.getInfo();
|
|
```
|