Skip to content

Commit f7d2464

Browse files
authored
Merge pull request #56 from Keyflow/master
Fixing issue where the fullCount option was passed outside of the opt…
2 parents e9d420f + c29ebfd commit f7d2464

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

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)