dillonkearns / elm-graphql

Autogenerate type-safe GraphQL queries in Elm.
https://package.elm-lang.org/packages/dillonkearns/elm-graphql/latest
BSD 3-Clause "New" or "Revised" License
778 stars 107 forks source link

Idea: include deprecation warnings into the generated code as comments #612

Open viktorce opened 1 year ago

viktorce commented 1 year ago

I guess the title is self explanatory

dillonkearns commented 1 year ago

This issue added it in some cases (in the generated code for fields): https://github.com/dillonkearns/elm-graphql/pull/600

I think there are some types of deprecated GraphQL things that aren't covered. I don't have the full context, maybe it was related to only being able to put Elm doc comments for functions, but @gampleman wasn't able to add deprecation comments for things besides fields. PRs would be welcome if there's a way to handle that.