Class: LMS::GraphQL::Mutations::Canvas::UpdatePreferencesByCategory
- Inherits:
-
CanvasBaseMutation
- Object
- GraphQL::Schema::Mutation
- CanvasBaseMutation
- LMS::GraphQL::Mutations::Canvas::UpdatePreferencesByCategory
- Defined in:
- lib/lms/graphql/mutations/canvas/update_preferences_by_category.rb
Instance Method Summary collapse
Instance Method Details
#resolve(communication_channel_id:, category:, notification_preferences_frequency:) ⇒ Object
12 13 14 15 16 17 18 19 20 21 |
# File 'lib/lms/graphql/mutations/canvas/update_preferences_by_category.rb', line 12 def resolve(communication_channel_id:, category:, notification_preferences_frequency:) ctx[:canvas_api].proxy( "UPDATE_PREFERENCES_BY_CATEGORY", { "communication_channel_id": communication_channel_id, "category": category, "notification_preferences[frequency]": notification_preferences_frequency }, nil, ).parsed_response end |