Skip to content

Using Enums in a Query #373

Answered by houten11
safaci2000 asked this question in Q&A
Aug 8, 2024 · 1 comments · 1 reply
Discussion options

You must be logged in to vote

If you have enums in your schema, generator will generate enum package for you. After importing the package, you can write:

WHERE(storageSchema.Buckets.EnvironmentName.EQ(enum.Enviroment.Production))

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@safaci2000
Comment options

Answer selected by safaci2000
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants