You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@drmax24 The description implementation in GraphQLite leaves a bit to be desired. I don't believe types currently support descriptions - maybe through the docblock.
GraphQLite originally relied on docblocks to set the description (for some SDEs), and still does for some schema definition elements (operations).
A comprehensive approach needs to be taken to descriptions. All attributes that define a schema definition element should include a description argument. The SchemaFactory should include a setting on whether to default to phpdoc for descriptions (if an attribute doesn't define one and the phpdoc does). Defaulting to phpdoc is a potential security issue with unintended consequences. And, IMO, should be disabled by default. It was a bad design choice.
How can i specify the description (for schema) for my enum?
The text was updated successfully, but these errors were encountered: