Class: LMSGraphQL::Resolvers::Canvas::GetMigrationIssueUser

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

Instance Method Summary collapse

Instance Method Details

#resolve(user_id:, content_migration_id:, id:, get_all: false) ⇒ Object



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

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