Skip to content

Commit c29ebfd

Browse files
author
Mikael Setterberg
committed
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
1 parent ad655da commit c29ebfd

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

pyArango/query.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -133,7 +133,9 @@ class AQLQuery(Query) :
133133
"AQL queries are attached to and instanciated by a database"
134134
def __init__(self, database, query, batchSize, bindVars, options, count, fullCount, rawResults = True,
135135
json_encoder = None, **moreArgs) :
136-
payload = {'query' : query, 'batchSize' : batchSize, 'bindVars' : bindVars, 'options' : options, 'count' : count, 'fullCount' : fullCount}
136+
# fullCount is passed in the options dict per https://docs.arangodb.com/3.1/HTTP/AqlQueryCursor/AccessingCursors.html
137+
options["fullCount"] = fullCount
138+
payload = {'query' : query, 'batchSize' : batchSize, 'bindVars' : bindVars, 'options' : options, 'count' : count}
137139
payload.update(moreArgs)
138140

139141
self.query = query

0 commit comments

Comments
 (0)