Prakash P
Prakash P

Reputation: 4066

what is alternative to executeQueryWithResultSet() in ArangoDb 3.0.2?

I am using ArangoDb 3.0.2.

I want to execute query similar to this method

executeQueryWithResultSet()

which used to work well in Arangodb 2.3.

What is alternative for this method for Arango 3.0.2 and what are its parameters?

This Official Java tutorial is still using the old method, which when I am trying with Arango 3.0.2 giving me error.

Thanks..!

Upvotes: 0

Views: 43

Answers (1)

mpv89
mpv89

Reputation: 1891

You can use executeAqlQuery() which returns you CursorResult<T> or you can use executeDocumentQuery() which returns you DocumentCursor<T>.

Use executeDocumentQuery() only if your query returns you a document or a list of documents that extends DocumentEntity, otherwise use executeAqlQuery().

The Java tutorial is not up to date, but you can find the updated and correct sources for the tutorial here.

Upvotes: 2

Related Questions