FirebaseExtended / firestoreodm-flutter

BSD 3-Clause "New" or "Revised" License
36 stars 11 forks source link

You cannot use '!=' filters more than once still an issue #13

Closed urbanmania closed 8 months ago

urbanmania commented 8 months ago

Expected Behavior

I'm expecting to be able to use whereFieldPath(FieldPath(const ["rolesQuery"]), arrayContains: auth.currentUser!.uid)

Actual Behavior

I get an error: You cannot use '!=' filters more than once.

Steps to Reproduce the Problem

This project here re-creates the problem - https://github.com/urbanmania/test_project

Specifications

gmarizy commented 8 months ago

You have to run flutter pub run build_runner build --delete-conflicting-outputs after upgrading cloud_firestore_odm_generator. Generator is responsible for generating .g.dart files, if you don't execute it it's as if you didn't updated the dependency.

urbanmania commented 8 months ago

I'm so sorry, I forgot to run the build_runner. This is fixed, just me being unprofessional

gmarizy commented 8 months ago

Well, you took time to create a project showcasing the problem for your issue so nobody is going to say you are unprofessional. I forget to run build_runner after a version update half of the time, that's how I knew immediately what to look after cloning your repo ;o)