diff --git a/google/cloud/firestore_v1/query.py b/google/cloud/firestore_v1/query.py index 700493725f..7cabfcc5f9 100644 --- a/google/cloud/firestore_v1/query.py +++ b/google/cloud/firestore_v1/query.py @@ -160,7 +160,7 @@ def get( for order in self._orders: order.direction = _enum_from_direction( self.DESCENDING - if order.direction == self.ASCENDING + if order.direction.name == self.ASCENDING else self.ASCENDING ) self._limit_to_last = False