Node.js - kv.get()
Get a value from a key value store.
import { kv } from '@nitric/sdk'
const profiles = kv('profiles').allow('get')
const profile = await profiles.get('profile-1a2b3c')
Parameters
- Name
key
- Required
- Required
- Type
- string
- Description
The key that references the key value pair that should be retrieved.
Examples
Get a key value pair
import { kv } from '@nitric/sdk'
const profiles = kv('profiles').allow('get')
const profile = await profiles.get('profile-1a2b3c')