Skip to main content

GoalEditParams

New state for goalEdit. triggers replaces the whole trigger set; omitting name or syncValues keeps it.

input GoalEditParams {
id: Int!
name: String
autoName: String!
triggers: [GoalTriggerInput!]!
syncValues: Boolean
}

Fields​

GoalEditParams.id ● Int! non-null scalar​

Goal id from goalRefList or goalCardList.

GoalEditParams.name ● String scalar​

New goal name, trimmed, then 1 to 255 characters. Omit to keep the current name; null is rejected.

GoalEditParams.autoName ● String! non-null scalar​

Fallback display label stored as given; the web app sends the goal name.

GoalEditParams.triggers ● [GoalTriggerInput!]! non-null input​

Complete trigger list. Send id from goalDetail to keep and update a trigger; entries without id are created and existing triggers left out are soft-deleted. Send only triggers whose deletedAt is null; an id that is not one of this goal's triggers fails the whole edit.

GoalEditParams.syncValues ● Boolean scalar​

Editor preference for copying the first trigger's value settings; stored only. Omit to keep.

Member Of​

goalEdit mutation