Class: LMSGraphQL::Resolvers::Canvas::ListUserParticipant

Inherits:
CanvasBaseResolver
  • Object
show all
Defined in:
lib/lms_graphql/resolvers/canvas/list_user_participants.rb

Instance Method Summary collapse

Instance Method Details

#resolve(id:, registration_status: nil, get_all: false) ⇒ Object



10
11
12
13
14
15
16
17
18
19
20
# File 'lib/lms_graphql/resolvers/canvas/list_user_participants.rb', line 10

def resolve(id:, registration_status: nil, get_all: false)
  result = context[:canvas_api].call("LIST_USER_PARTICIPANTS").proxy(
    "LIST_USER_PARTICIPANTS",
    {
      "id": id,
      "registration_status": registration_status            },
    nil,
    get_all,
  )
  get_all ? result : result.parsed_response
end