diff options
Diffstat (limited to 'app/graphql/types/tree/entry_type.rb')
-rw-r--r-- | app/graphql/types/tree/entry_type.rb | 18 |
1 files changed, 12 insertions, 6 deletions
diff --git a/app/graphql/types/tree/entry_type.rb b/app/graphql/types/tree/entry_type.rb index 87a3eced896..b40e38ec9d1 100644 --- a/app/graphql/types/tree/entry_type.rb +++ b/app/graphql/types/tree/entry_type.rb @@ -4,12 +4,18 @@ module Types module EntryType include Types::BaseInterface - field :id, GraphQL::ID_TYPE, null: false # rubocop:disable Graphql/Descriptions - field :sha, GraphQL::STRING_TYPE, null: false, description: "Last commit sha for entry", method: :id - field :name, GraphQL::STRING_TYPE, null: false # rubocop:disable Graphql/Descriptions - field :type, Tree::TypeEnum, null: false # rubocop:disable Graphql/Descriptions - field :path, GraphQL::STRING_TYPE, null: false # rubocop:disable Graphql/Descriptions - field :flat_path, GraphQL::STRING_TYPE, null: false # rubocop:disable Graphql/Descriptions + field :id, GraphQL::ID_TYPE, null: false, + description: 'ID of the entry' + field :sha, GraphQL::STRING_TYPE, null: false, + description: 'Last commit sha for the entry', method: :id + field :name, GraphQL::STRING_TYPE, null: false, + description: 'Name of the entry' + field :type, Tree::TypeEnum, null: false, + description: 'Type of tree entry' + field :path, GraphQL::STRING_TYPE, null: false, + description: 'Path of the entry' + field :flat_path, GraphQL::STRING_TYPE, null: false, + description: 'Flat path of the entry' end end end |