Это простой запрос
_firestore
.collection('workerField')
.where('uid', isNotEqualTo: getCurrentUser().uid)
.orderBy('orderBy',descending: true)
И я получаю такую ошибку:
Следующее утверждение было выдано при построении BlocBuilder ‹AuthenticationBloc, AuthenticationState› (грязный, состояние: _BlocBuilderBaseState ‹AuthenticationBloc, AuthenticationState› # d3204):
Начальное поле orderBy () [[FieldPath ([orderBy]), true]] [0] [0] должно быть таким же, как параметр поля where () FieldPath ([uid]) при вызове оператора неравенства.
‘package: cloud_firestore / src / query.dart’:
Неудачное утверждение: строка 252, позиция 18: ‘field == orders [0] [0]’