summaryrefslogtreecommitdiff
path: root/app/graphql/types/tree/entry_type.rb
blob: 10c2ad8815e95585658b20acc6139aab9d4e48c0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
# frozen_string_literal: true
module Types
  module Tree
    module EntryType
      include Types::BaseInterface

      field :id, GraphQL::ID_TYPE, null: false # rubocop:disable Graphql/Descriptions
      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
    end
  end
end