-
Notifications
You must be signed in to change notification settings - Fork 4.1k
Closed
Labels
impact: customerA bug with low impact (e.g. affecting only a few customers or has a workaround). (P3)A bug with low impact (e.g. affecting only a few customers or has a workaround). (P3)plugin: cloud_firestoretype: bugSomething isn't workingSomething isn't working
Description
Describe the bug
can't query nested array in firestore
i was trying to query this:
_db.collection('chats')
.where('owners', whereIn: [[_me, _he], [ _he ,_me]])
.orderBy('createdAt', descending: true)
.limit(2)but i I've got this bug report:
E/flutter (13152): [ERROR:flutter/lib/ui/ui_dart_state.cc(157)] Unhandled Exception: PlatformException(error, Invalid data. Nested arrays are not supported, null)
E/flutter (13152): #0 StandardMethodCodec.decodeEnvelope
package:flutter/…/services/message_codecs.dart:569
E/flutter (13152): #1 MethodChannel.invokeMethod
package:flutter/…/services/platform_channel.dart:321
E/flutter (13152): <asynchronous suspension>
E/flutter (13152): #2 Query.snapshots.<anonymous closure>
package:cloud_firestore/src/query.dart:61
E/flutter (13152): #3 _runGuarded (dart:async/stream_controller.dart:807:24)
E/flutter (13152): #4 _BroadcastStreamController._subscribe (dart:async/broadcast_stream_controller.dart:215:7)
E/flutter (13152): #5 _ControllerStream._createSubscription (dart:async/stream_controller.dart:820:19)
E/flutter (13152): #6 _StreamImpl.listen (dart:async/stream_impl.dart:474:9)
E/flutter (13152): #7 new _ForwardingStreamSubscription (dart:async/stream_pipe.dart:125:10)
E/flutter (13152): #8 _ForwardingStream._createSubscription (dart:async/stream_pipe.dart:93:16)
E/flutter (13152): #9 _ForwardingStream.listen (dart:async/stream_pipe.dart:88:12)To Reproduce
just query this:
_db.collection('chats')
.where('owners', whereIn: [[_me, _he], [ _he ,_me]])
.orderBy('createdAt', descending: true)
.limit(2)Expected behavior
this code is working on the web and i'm using it my my angular app.
i'll get the chat document.
Additional context
thanks
jcamilorm902
Metadata
Metadata
Assignees
Labels
impact: customerA bug with low impact (e.g. affecting only a few customers or has a workaround). (P3)A bug with low impact (e.g. affecting only a few customers or has a workaround). (P3)plugin: cloud_firestoretype: bugSomething isn't workingSomething isn't working