Welcome to mirror list, hosted at ThFree Co, Russian Federation.

entry_type.rb « tree « types « graphql « app - gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 1c612f91a5b43ed1a1117ecec7bba0d27c91ba08 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
# frozen_string_literal: true
module Types
  module Tree
    module EntryType
      include Types::BaseInterface

      field :id, GraphQL::Types::ID, null: false,
            description: 'ID of the entry.'
      field :sha, GraphQL::Types::String, null: false,
            description: 'Last commit SHA for the entry.', method: :id
      field :name, GraphQL::Types::String, null: false,
            description: 'Name of the entry.'
      field :type, Tree::TypeEnum, null: false,
            description: 'Type of tree entry.'
      field :path, GraphQL::Types::String, null: false,
            description: 'Path of the entry.'
      field :flat_path, GraphQL::Types::String, null: false,
            description: 'Flat path of the entry.'
    end
  end
end