Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions lib/graphql-docs/parser.rb
Original file line number Diff line number Diff line change
Expand Up @@ -177,6 +177,10 @@ def fetch_fields(object_fields, parent_path)
h[:description] = arg.description
h[:type] = generate_type(arg.type)
h[:default_value] = arg.default_value if arg.default_value?
if arg.respond_to?(:deprecation_reason) && arg.deprecation_reason
h[:is_deprecated] = true
h[:deprecation_reason] = arg.deprecation_reason
end
hash[:arguments] << h
end
end
Expand Down