From c29ebfd99dbe25733b91175920925ed783004512 Mon Sep 17 00:00:00 2001 From: Mikael Setterberg Date: Thu, 5 Jan 2017 17:15:26 +0100 Subject: [PATCH] Fixing issue where the fullCount option was passed outside of the options dict causing never to be returned form the server. See: https://docs.arangodb.com/3.1/HTTP/AqlQueryCursor/AccessingCursors.html --- pyArango/query.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/pyArango/query.py b/pyArango/query.py index c5647d1..330dbd1 100644 --- a/pyArango/query.py +++ b/pyArango/query.py @@ -133,7 +133,9 @@ class AQLQuery(Query) : "AQL queries are attached to and instanciated by a database" def __init__(self, database, query, batchSize, bindVars, options, count, fullCount, rawResults = True, json_encoder = None, **moreArgs) : - payload = {'query' : query, 'batchSize' : batchSize, 'bindVars' : bindVars, 'options' : options, 'count' : count, 'fullCount' : fullCount} + # fullCount is passed in the options dict per https://docs.arangodb.com/3.1/HTTP/AqlQueryCursor/AccessingCursors.html + options["fullCount"] = fullCount + payload = {'query' : query, 'batchSize' : batchSize, 'bindVars' : bindVars, 'options' : options, 'count' : count} payload.update(moreArgs) self.query = query