Class: LMSGraphQL::Mutations::Canvas::CreateContentShare
- Inherits:
-
BaseMutation
- Object
- GraphQL::Schema::Mutation
- BaseMutation
- LMSGraphQL::Mutations::Canvas::CreateContentShare
- Defined in:
- lib/lms_graphql/mutations/canvas/create_content_share.rb
Instance Method Summary collapse
Instance Method Details
#resolve(user_id:, receiver_ids:, content_type:, content_id:) ⇒ Object
15 16 17 18 19 20 21 22 23 24 25 26 27 |
# File 'lib/lms_graphql/mutations/canvas/create_content_share.rb', line 15 def resolve(user_id:, receiver_ids:, content_type:, content_id:) context[:canvas_api].call("CREATE_CONTENT_SHARE").proxy( "CREATE_CONTENT_SHARE", { "user_id": user_id }, { "receiver_ids": receiver_ids, "content_type": content_type, "content_id": content_id }, ).parsed_response end |