We are looking for a solution when updating or eliminating old enum values. Currently we've marked them deprecated, which the schema picks up on. However, in Xcode these values are still generated as part of the enums and simply marked with Xcode warnings. I'd like to remove the deprecated values instead for two reasons:
- I want to take advantage of the Swift CaseIterable ability to use allCases to give me a list of values. Currently this would include the deprecated values as well.
- This keeps a large number of warnings in the generated code file, which I can't fix because it'll will just get overridden the next time we run the Generate Apollo GraphQL API run script phase.
Ideally we'd love if there was a flag or some other way of removing these deprecated values. Thanks!!
We are looking for a solution when updating or eliminating old enum values. Currently we've marked them deprecated, which the schema picks up on. However, in Xcode these values are still generated as part of the enums and simply marked with Xcode warnings. I'd like to remove the deprecated values instead for two reasons:
Ideally we'd love if there was a flag or some other way of removing these deprecated values. Thanks!!