Class: LMSGraphQL::Resolvers::Canvas::ListPollChoicesInPoll
- Inherits:
-
CanvasBaseResolver
- Object
- GraphQL::Schema::Resolver
- CanvasBaseResolver
- LMSGraphQL::Resolvers::Canvas::ListPollChoicesInPoll
- Defined in:
- lib/lms_graphql/resolvers/canvas/list_poll_choices_in_poll.rb
Instance Method Summary collapse
Instance Method Details
#resolve(poll_id:, get_all: false) ⇒ Object
9 10 11 12 13 14 15 16 17 18 |
# File 'lib/lms_graphql/resolvers/canvas/list_poll_choices_in_poll.rb', line 9 def resolve(poll_id:, get_all: false) result = context[:canvas_api].call("LIST_POLL_CHOICES_IN_POLL").proxy( "LIST_POLL_CHOICES_IN_POLL", { "poll_id": poll_id }, nil, get_all, ) get_all ? result : result.parsed_response end |