Skip to content

ArangoCollection getDocument() variants are inconsistent #168

Closed
@CuriusAlgo

Description

@CuriusAlgo

In ArangoCollection.java, getDocument(key, type) ignores all errors and returns null. getDocument(key, type, options) only returns null when the document does not exist and throws otherwise. That means, in the presence of connection issues, the first variant will return null, the second will throw (regardless of the actual options).

This seems to be an oversight from #133. getDocument(key, type) should be implemented by forwarding to getDocument(key, type, options) with default constructed options, just like documentExists does.

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions