create_alias

Point an alias at a collection. Aliases are how you keep callers stable while rebuilding collections underneath.

Example

up:
  - op: create_alias
    collection: products_v2
    alias: products

Fields

FieldTypeRequiredDescription
collectionstringyesCollection the alias should resolve to.
aliasstringyesAlias name.

Reversibility

Auto-reversible → delete_alias.