I am using the following query:
Query postsQuery = FirebaseFirestore.instance.collection('posts')
.where('postType', isNotEqualTo: 'Discussion') //post types - Simple, featured, discussion
.orderBy('createdAt', descending: true)
.where('group', isEqualTo: groupName) //india, usa, pakistan
.limit(perPage);
The query runs if i remove this :
.where('postType', isNotEqualTo: 'Discussion')
Anyone knows what i am doing wring here?