Skip to content

Commit

Permalink
docs: Stream maps example for adding property with hardcoded string v…
Browse files Browse the repository at this point in the history
…alue (#1335)
  • Loading branch information
edgarrmondragon authored Jan 20, 2023
1 parent a349e38 commit 12679ff
Show file tree
Hide file tree
Showing 2 changed files with 189 additions and 129 deletions.
15 changes: 15 additions & 0 deletions docs/stream_maps.md
Original file line number Diff line number Diff line change
Expand Up @@ -273,6 +273,21 @@ Notes:
- To sync the stream as if it did not contain a primary key, simply set `__key_properties__` to `null`.
- Key properties _must_ be present in the transformed stream result. Otherwise, an error will be raised.

### Add a property with a string literal value

Some applications, such as multi-tenant, may benefit from adding a property with a hardcoded string literal value.
These values need to be wrapped in double quotes to differentiate them from property names:

```json
{
"stream_maps": {
"customers": {
"a_new_field": "\"client-123\""
}
}
}
```

#### Q: What is the difference between `primary_keys` and `key_properties`?

**A:** These two are _generally_ identical - and will only differ in cases like the above where `key_properties` is manually
Expand Down
Loading

0 comments on commit 12679ff

Please sign in to comment.