Class: LMSGraphQL::Mutations::Canvas::SetFeatureFlagAccount

Inherits:
BaseMutation
  • Object
show all
Defined in:
lib/lms_graphql/mutations/canvas/set_feature_flag_accounts.rb

Instance Method Summary collapse

Instance Method Details

#resolve(account_id:, feature:, state: nil) ⇒ Object



14
15
16
17
18
19
20
21
22
23
24
25
# File 'lib/lms_graphql/mutations/canvas/set_feature_flag_accounts.rb', line 14

def resolve(account_id:, feature:, state: nil)
  context[:canvas_api].call("SET_FEATURE_FLAG_ACCOUNTS").proxy(
    "SET_FEATURE_FLAG_ACCOUNTS",
    {
      "account_id": ,
      "feature": feature
    },
    {
      "state": state
    },
  ).parsed_response
end