How to specify the order of enums in a live query #1086
Unanswered
literaleigh
asked this question in
Q&A
Replies: 1 comment 3 replies
-
|
We use standard schema to drive our schemas and they don't expose ordered enums as a type so can't do this automatically. So your best bet is to add another field that maps the enum ordering to an integer so you can sort on that. |
Beta Was this translation helpful? Give feedback.
3 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
I have enums on my collection
and if i make a livequery and orderBy the enum property, they get sorted alphabetically. How do I order them to mirror the database enum ordering behavior?
Beta Was this translation helpful? Give feedback.
All reactions