Trying to create a composite index so I can complete the following QuerySnapshot:
final Stream<QuerySnapshot> _tasksStream = FirebaseFirestore.instance
.collection('tasks')
.orderBy('duedate', descending: true)
.where('mocUID', isEqualTo: widget.uid)
.where('type', isEqualTo: 'General')
.snapshots();
The terminal in Android studio isn't returning a link to create said index as promised in the youtube videos, so I created it manually:
But my query continues to return 'Something went wrong'.
return StreamBuilder<QuerySnapshot>(
stream: _tasksStream,
builder: (BuildContext context, AsyncSnapshot<QuerySnapshot> snapshot) {
if (snapshot.hasError) {
return const Text('Something went wrong');
}
