Component(s)
No response
Is your feature request related to a problem? Please describe.
Imagine that you are trying to use Cosmo Connect on an existing service.
You have a protobuf in which enum is declared.
enum Test {
...
TEST_MEOW = 100;
...
}
Then you generate a new protobuf from GraphQL, which will now assign numbers in order to all values, and you may end up with something like this
enum Test {
...
TEST_MEOW = 20;
...
}
Meanwhile, we store 100 in the database. And you will have to first create a mapper in protobuf with 100, then manually create a mapper with 20. This is inconvenient. Of course, in the era of AI, this is not so annoying, but still, it would be nice to have a tool that solves this problem, allowing you to manually set the numbers for protobuf generation. Something similar was done in gqlgen: https://gqlgen.com/recipes/enum/
Describe the solution you'd like
Ability to specify custom enumerate mapping
Describe alternatives you've considered
No response
Additional context
No response
Component(s)
No response
Is your feature request related to a problem? Please describe.
Imagine that you are trying to use Cosmo Connect on an existing service.
You have a protobuf in which enum is declared.
Then you generate a new protobuf from GraphQL, which will now assign numbers in order to all values, and you may end up with something like this
Meanwhile, we store 100 in the database. And you will have to first create a mapper in protobuf with 100, then manually create a mapper with 20. This is inconvenient. Of course, in the era of AI, this is not so annoying, but still, it would be nice to have a tool that solves this problem, allowing you to manually set the numbers for protobuf generation. Something similar was done in gqlgen: https://gqlgen.com/recipes/enum/
Describe the solution you'd like
Ability to specify custom enumerate mapping
Describe alternatives you've considered
No response
Additional context
No response