9b65d4bb41
- All definitions have been replaced by classes: http://graphql-ruby.org/schema/class_based_api.html - Authorization & Presentation have been refactored to work in the class based system - Loaders have been replaced by resolvers - Times are now coersed as ISO 8601
11 lines
218 B
Ruby
11 lines
218 B
Ruby
module Resolvers
|
|
class ProjectResolver < BaseResolver
|
|
prepend FullPathResolver
|
|
|
|
type Types::ProjectType, null: true
|
|
|
|
def resolve(full_path:)
|
|
model_by_full_path(Project, full_path)
|
|
end
|
|
end
|
|
end
|