Skip to content

Commit

Permalink
docs: add metadata/uuid page
Browse files Browse the repository at this point in the history
  • Loading branch information
sergkudinov authored and wdavidw committed Mar 1, 2021
1 parent 66ae4c7 commit 28e4484
Showing 1 changed file with 22 additions and 0 deletions.
22 changes: 22 additions & 0 deletions docs/content/metadata/uuid.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
---
navtitle: uuid
---

# Metadata "uuid"

The `uuid` metadata identifies the global Nikita session. It is shared between all the child actions and contains the UUID value in the [RFC4122](https://www.ietf.org/rfc/rfc4122.txt) format.

* Type: `string`
* Read-only

## Usage

The metadata can be accessed from the inside of the [action handler](/current/action/handler).

```js
nikita
.call(({metadata: {uuid}}) => {
// Print the value
console.info(uuid) // 419196e4-48af-4eb6-9dba-4e05653f8007
})
```

0 comments on commit 28e4484

Please sign in to comment.