class LMSGraphQL::Mutations::Canvas::RateEntryGroup

Public Instance Methods

resolve(group_id:, topic_id:, entry_id:, rating: nil) click to toggle source
# File lib/lms_graphql/mutations/canvas/rate_entry_groups.rb, line 15
def resolve(group_id:, topic_id:, entry_id:, rating: nil)
  context[:canvas_api].call("RATE_ENTRY_GROUPS").proxy(
    "RATE_ENTRY_GROUPS",
    {
      "group_id": group_id,
      "topic_id": topic_id,
      "entry_id": entry_id
    },
    {
      "rating": rating
    },
  ).parsed_response
end