KeyValueStoreCollectionClient
Hierarchy
- ResourceCollectionClient
- KeyValueStoreCollectionClient
Index
Properties
inheritedapifyClient
inheritedbaseUrl
inheritedhttpClient
optionalinheritedid
optionalinheritedparams
inheritedpublicBaseUrl
inheritedresourcePath
optionalinheritedsafeId
inheritedurl
Methods
getOrCreate
Parameters
optionalname: string
optionaloptions: KeyValueStoreCollectionClientGetOrCreateOptions
Returns Promise<KeyValueStore>
list
Awaiting the return value (as you would with a Promise) will result in a single API call. The amount of fetched items in a single API call is limited.
const paginatedList = await client.list(options);Asynchronous iteration is also supported. This will fetch additional pages if needed until all items are retrieved.
for await (const singleItem of client.list(options)) {...}Parameters
options: KeyValueStoreCollectionClientListOptions = {}
Returns Promise<PaginatedList<KeyValueStoreCollectionListResult>> & AsyncIterable<KeyValueStore, any, any>
https://docs.apify.com/api/v2#/reference/key-value-stores/store-collection/create-key-value-store