gitlab-org--gitlab-foss/app/graphql/types/query_type.rb

17 lines
385 B
Ruby

# frozen_string_literal: true
module Types
class QueryType < BaseObject
graphql_name 'Query'
field :project, Types::ProjectType,
null: true,
resolver: Resolvers::ProjectResolver,
description: "Find a project" do
authorize :read_project
end
field :echo, GraphQL::STRING_TYPE, null: false, function: Functions::Echo.new
end
end