2018-12-05 23:21:45 +05:30
|
|
|
# frozen_string_literal: true
|
|
|
|
|
2018-11-08 19:23:39 +05:30
|
|
|
module Resolvers
|
|
|
|
class ProjectResolver < BaseResolver
|
|
|
|
prepend FullPathResolver
|
|
|
|
|
|
|
|
type Types::ProjectType, null: true
|
|
|
|
|
|
|
|
def resolve(full_path:)
|
|
|
|
model_by_full_path(Project, full_path)
|
|
|
|
end
|
2019-07-31 22:56:46 +05:30
|
|
|
|
|
|
|
def self.complexity_multiplier(args)
|
|
|
|
0
|
|
|
|
end
|
2018-11-08 19:23:39 +05:30
|
|
|
end
|
|
|
|
end
|