Skip to main content

append

append is a DML operation that adds one value to the end of a sequence.

Use it when the target sequence already exists and order matters.

YOp

- append:
path: config/allowed_hosts
value: "*.example.com"

Parameters

ParameterTypeRequiredDescription
pathstringyesPath to the target sequence.
valueanyyesYAML value to append.

Behavior

  • Requires the target path to exist.
  • Requires the target to be a sequence.
  • Appends the value after existing items.
  • Does not deduplicate. Use unique after append when uniqueness is required.

Errors

ErrorMeaning
PATH_NOT_FOUNDTarget path does not exist.
NOT_A_SEQUENCETarget is not a sequence.

Example

yops:
- append:
path: tags
value: reviewed

Input:

tags:
- draft

Output:

tags:
- draft
- reviewed