await index.fetch({ ids: ["star-wars", "inception"] }); /* [ { id: "star-wars", content: { ... }, metadata: { ... } }, { id: "inception", content: { ... }, metadata: { ... } } ] */
Used to retrieve documents by their IDs.
The IDs of the documents you want to fetch.
OR
Hide child attributes
An ID prefix to match document IDs.
This field is null if no document with the specified ID is found.
null
The ID of the resulting document.
Was this page helpful?