debian-mirror-gitlab/app/graphql/resolvers/todo_resolver.rb

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

18 lines
369 B
Ruby
Raw Normal View History

2019-12-21 20:55:43 +05:30
# frozen_string_literal: true
module Resolvers
class TodoResolver < BaseResolver
2022-08-13 15:12:31 +05:30
description 'Retrieve a single to-do item'
2019-12-21 20:55:43 +05:30
2022-08-13 15:12:31 +05:30
type Types::TodoType, null: true
2019-12-21 20:55:43 +05:30
2022-08-13 15:12:31 +05:30
argument :id, Types::GlobalIDType[Todo],
required: true,
description: 'ID of the to-do item.'
2019-12-21 20:55:43 +05:30
2022-08-13 15:12:31 +05:30
def resolve(id:)
GitlabSchema.find_by_gid(id)
2019-12-21 20:55:43 +05:30
end
end
end