Class: LMSGraphQL::Resolvers::Canvas::IndexOfActiveGlobalNotificationForUser
- Inherits:
-
CanvasBaseResolver
- Object
- GraphQL::Schema::Resolver
- CanvasBaseResolver
- LMSGraphQL::Resolvers::Canvas::IndexOfActiveGlobalNotificationForUser
- Defined in:
- lib/lms_graphql/resolvers/canvas/index_of_active_global_notification_for_user.rb
Instance Method Summary collapse
Instance Method Details
#resolve(account_id:, get_all: false) ⇒ Object
10 11 12 13 14 15 16 17 18 19 |
# File 'lib/lms_graphql/resolvers/canvas/index_of_active_global_notification_for_user.rb', line 10 def resolve(account_id:, get_all: false) result = context[:canvas_api].call("INDEX_OF_ACTIVE_GLOBAL_NOTIFICATION_FOR_USER").proxy( "INDEX_OF_ACTIVE_GLOBAL_NOTIFICATION_FOR_USER", { "account_id": account_id }, nil, get_all, ) get_all ? result : result.parsed_response end |