debian-mirror-gitlab/app/graphql/types/branch_type.rb
2021-10-27 15:23:28 +05:30

19 lines
471 B
Ruby

# frozen_string_literal: true
module Types
# rubocop: disable Graphql/AuthorizeTypes
class BranchType < BaseObject
graphql_name 'Branch'
field :name,
GraphQL::Types::String,
null: false,
description: 'Name of the branch.'
field :commit, Types::CommitType,
null: true, resolver: Resolvers::BranchCommitResolver,
description: 'Commit for the branch.'
end
# rubocop: enable Graphql/AuthorizeTypes
end