We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c0fa1be commit 129ef95Copy full SHA for 129ef95
aredis_om/model/model.py
@@ -749,7 +749,7 @@ async def execute(self, exhaust_results=True):
749
750
async def first(self):
751
query = self.copy(offset=0, limit=1, sort_fields=self.sort_fields)
752
- results = await query.execute()
+ results = await query.execute(exhaust_results=False)
753
if not results:
754
raise NotFoundError()
755
return results[0]
0 commit comments