CreateMenuItem
Signature
mutation {
CreateMenuItem(menuId: ..., localizedLabel: ..., sortIndex: ..., phpApplicable: ...)
}
Retourne : MenuItemConfiguration!
Arguments
| Nom | Type | Requis | Défaut | Description |
|---|---|---|---|---|
menuId | ID! | ✓ | — | — |
localizedLabel | [LocalizedStringInput]! | ✓ | — | — |
routeName | String | — | — | |
url | String | — | — | |
featureFlag | FeatureFlagId | — | — | |
parentMenuItemId | ID | — | — | |
sortIndex | Int! | ✓ | — | — |
phpApplicable | String! | ✓ | — | — |
Exemple
mutation {
CreateMenuItem(
menuId: $menuId
localizedLabel: $localizedLabel
sortIndex: $sortIndex
phpApplicable: $phpApplicable
) {
id
menu {}
parent {}
label
localizedLabel {}
routeName
featureFlag {}
url
phpApplicable
sortIndex
children {}
}
}