Skip to content

Commit 58ac58a

Browse files
committed
Pass variable results flag
1 parent e4a16a0 commit 58ac58a

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

jupiterone/client.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -91,6 +91,9 @@ def _execute_query(self, query: str, variables: Dict = None) -> Dict:
9191
if variables:
9292
data.update(variables=variables)
9393

94+
# Always ask for variableresultsize
95+
data.update(flags={"variableResultSize": True})
96+
9497
response = requests.post(
9598
self.query_endpoint, headers=self.headers, json=data, timeout=60
9699
)
@@ -151,6 +154,7 @@ def _cursor_query(
151154
response = self._execute_query(query=CURSOR_QUERY_V1, variables=variables)
152155
data = response["data"]["queryV1"]["data"]
153156

157+
# This means it's a "TREE" query and we have everything
154158
if "vertices" in data and "edges" in data:
155159
return data
156160

0 commit comments

Comments
 (0)