Upstash Documentation

Fetch

1 min read

Used to retrieve documents by their IDs.

Arguments#

IDsstring[] | number[]required#

The IDs of the documents you want to fetch.

OR

FetchPayloadobjectrequired#
Show properties
idsstring[] | number[]#

The IDs of the documents you want to fetch.

prefixstring#

An ID prefix to match document IDs.

Response#

FetchResult[]Document[]required#

This field is null if no document with the specified ID is found.

Show properties
idstring | numberrequired#

The ID of the resulting document.

contentRecord<string, unknown>#
metadataRecord<string, unknown>#