Enums stored in firebase collection are unusable

Database & APIs

I have a "teams" firebase collection with a "region" enum field. The enum works fine in-app along with its logic, but when I store a team document the enum is stored as an encoded string (not the enum name.)

"West" -> "ykf90"

"East" -> "rovbk"

Those encoded values are unusable in-app, for example when I do a filtered query with the region enum to get only west teams I get nothing because the West value of the enum is being compared to "ykf90", which doesn't work.

Furthermore this was not a problem a month ago, enums were stored normally, and app logic worked fine.

Is it an update with how FlutterFlow handles enums? is it a problem with firebase configuration? or is it just a bug?

let me know what you think.

What have you tried so far?
  • tested on multiple collections

  • reconnected firebase

Did you check FlutterFlow's Documentation for this topic?
Yes
3
8 replies