1
0
Fork 0
arangodb/Documentation/Books/Drivers/Java/Reference/View/README.md

44 lines
892 B
Markdown

<!-- don't edit here, it's from https://@github.com/arangodb/arangodb-java-driver.git / docs/Drivers/ -->
# View API
These functions implement the
[HTTP API for views](../../../..//HTTP/Views/index.html).
## Getting information about the view
See
[the HTTP API documentation](../../../..//HTTP/Views/Getting.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();
```