Class: LMSGraphQL::Mutations::Canvas::UpdatePreferenceType
- Inherits:
-
CanvasBaseMutation
- Object
- GraphQL::Schema::Mutation
- CanvasBaseMutation
- LMSGraphQL::Mutations::Canvas::UpdatePreferenceType
- Defined in:
- lib/lms_graphql/mutations/canvas/update_preference_type.rb
Instance Method Summary collapse
Instance Method Details
#resolve(type:, address:, notification:, notification_preferences_frequency:) ⇒ Object
12 13 14 15 16 17 18 19 20 21 22 |
# File 'lib/lms_graphql/mutations/canvas/update_preference_type.rb', line 12 def resolve(type:, address:, notification:, notification_preferences_frequency:) ctx[:canvas_api].proxy( "UPDATE_PREFERENCE_TYPE", { "type": type, "address": address, "notification": notification, "notification_preferences[frequency]": notification_preferences_frequency }, nil, ).parsed_response end |