descriptions for arguments
Is there any way to add descriptions to arguments currently? I think it's a drawback that we cannot add stuff like deprecated directives and descriptions to arguments just because we use typehints.
Instead of this, does python support something like:
That would be cool
7 Replies
I think this will be possible:
So the following will also be possible:
This looks sorta clean. Is this already possible but not mentioned in the docs? @jkimbo @patrick.py
This is assuming we have a class named
Field
from strawberry that holds the metadataUnknown User•2y ago
Message Not Public
Sign In & Join Server To View
Nope this is about arguments, the one about fields was related
Unknown User•2y ago
Message Not Public
Sign In & Join Server To View
Oh! I didnt notice it! Thanks!
Unknown User•2y ago
Message Not Public
Sign In & Join Server To View
Maybe someone should create an issue regarding this