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

Can Schema.interface propagate docs down to implementations? #152

Open
phated opened this issue Mar 28, 2019 · 1 comment
Open

Can Schema.interface propagate docs down to implementations? #152

phated opened this issue Mar 28, 2019 · 1 comment

Comments

@phated
Copy link

phated commented Mar 28, 2019

Since abstract_field can receive a ~doc argument, would it be possible to provide that as a default for each implementation in the introspection query? This would be helpful to avoid duplicating documentation between abstract_field and field.

@andreas
Copy link
Owner

andreas commented Mar 29, 2019

Thanks for the suggestion! I think it should be possible, though I'm wondering whether an implementation should be allowed to not inherit the doc string, and how to achieve this (optional argument ?propagate_doc for Schema.add_type?). It could probably be a convenient feature, but personally I have other features higher on my wish list 😄

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

2 participants