Skip to main content

RulesMutation

The RulesMutation type represents the mutation root for the rules management API.

type RulesMutation {
createBlacklistRule(input: CreateBlacklistRuleInput!): BlacklistRule!
createPreferenceRule(input: CreatePreferenceRuleInput!): PreferenceRule!
updateBlacklistRule(
where: WhereRuleMutationInput!
data: UpdateBlacklistRuleInput!
): BlacklistRule!
updatePreferenceRule(
where: WhereRuleMutationInput!
data: UpdatePreferenceRuleInput!
): PreferenceRule!
deleteBlacklistRule(where: WhereRuleMutationInput!): BlacklistRule!
deletePreferenceRule(where: WhereRuleMutationInput!): PreferenceRule!
updateBlacklistRulePriority(
where: WhereRuleMutationInput!
priority: Int!
): BlacklistRule!
updatePreferenceRulePriority(
where: WhereRuleMutationInput!
priority: Int!
): PreferenceRule!
}

Fields

RulesMutation.createBlacklistRule ● BlacklistRule! non-null object

Create a new rule.

RulesMutation.createBlacklistRule.input ● CreateBlacklistRuleInput! non-null input

RulesMutation.createPreferenceRule ● PreferenceRule! non-null object

RulesMutation.createPreferenceRule.input ● CreatePreferenceRuleInput! non-null input

RulesMutation.updateBlacklistRule ● BlacklistRule! non-null object

Update an existing rule by ID.

RulesMutation.updateBlacklistRule.where ● WhereRuleMutationInput! non-null input
RulesMutation.updateBlacklistRule.data ● UpdateBlacklistRuleInput! non-null input

RulesMutation.updatePreferenceRule ● PreferenceRule! non-null object

RulesMutation.updatePreferenceRule.where ● WhereRuleMutationInput! non-null input
RulesMutation.updatePreferenceRule.data ● UpdatePreferenceRuleInput! non-null input

RulesMutation.deleteBlacklistRule ● BlacklistRule! non-null object

Delete a rule by ID.

RulesMutation.deleteBlacklistRule.where ● WhereRuleMutationInput! non-null input

RulesMutation.deletePreferenceRule ● PreferenceRule! non-null object

RulesMutation.deletePreferenceRule.where ● WhereRuleMutationInput! non-null input

RulesMutation.updateBlacklistRulePriority ● BlacklistRule! non-null object

Update the priority of a specific rule. This mutation will update all the rules with greater priority to ensure the priority is unique.

RulesMutation.updateBlacklistRulePriority.where ● WhereRuleMutationInput! non-null input
RulesMutation.updateBlacklistRulePriority.priority ● Int! non-null scalar

RulesMutation.updatePreferenceRulePriority ● PreferenceRule! non-null object

RulesMutation.updatePreferenceRulePriority.where ● WhereRuleMutationInput! non-null input
RulesMutation.updatePreferenceRulePriority.priority ● Int! non-null scalar

Returned By

businessRules mutation