Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add field enum to aid in querying #304

Open
jdimeo opened this issue Aug 20, 2022 · 0 comments
Open

Add field enum to aid in querying #304

jdimeo opened this issue Aug 20, 2022 · 0 comments

Comments

@jdimeo
Copy link

jdimeo commented Aug 20, 2022

Is it possible to add an enum to the type template with all the field names? This helps when you have to refer to a field by name and aren't using the getter/setter accessors. I think this would be useful when building queries to know that you don't have any typos.

Is there another way of doing this that I'm missing?

Here's a simple implementation but I don't know ST4 enough to know the right way of omitting the comma on the last enum item:
5a87dd9

Happy to open a PR from my fork if this would be helpful

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant