Class: LMSGraphQL::Mutations::Canvas::UpdatePreferencesByCategory
- Inherits:
-
BaseMutation
- Object
- GraphQL::Schema::Mutation
- BaseMutation
- LMSGraphQL::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
14 15 16 17 18 19 20 21 22 23 24 25 |
# File 'lib/lms_graphql/mutations/canvas/update_preferences_by_category.rb', line 14 def resolve(communication_channel_id:, category:, notification_preferences_frequency:) context[:canvas_api].call("UPDATE_PREFERENCES_BY_CATEGORY").proxy( "UPDATE_PREFERENCES_BY_CATEGORY", { "communication_channel_id": communication_channel_id, "category": category }, { "notification_preferences[frequency]": notification_preferences_frequency }, ).parsed_response end |