Inserting and Removing Data

Table of contents

  • Introduction
  • Common Pattern
  • Keys with dots

Introduction

Patterns are used to insert new data or remove existing data in Alumio. The pattern you enter defines
where the data should be added or deleted within the data structure.

  • When inserting data, the pattern defines the destination path.
  • When removing data, the pattern defines which field(s) to delete.

Common Pattern

Pattern Matches
user.name user → name
order.items.*.price order → items → [any item] → price
metadata.* All keys under metadata
customer.address.city customer → address → city
product.details.sku product → details → sku

Keys with dots

If a key in your data includes a dot (.) as part of the key, rather than as a level separator, you need to wrap that key in double quotes.

Example

{
  "product": {
    "product.sku": "ABC-123"
  }
}

To reference this in a pattern, use:

product."product.sku"