No results to display

1. Introduction2. Getting started2.1. Creating a database2.2. Tables2.3. Documents2.4. Expressions2.5. Aliases2.6. CLI2.7. Drivers3. Basic API3.1. Creating a table3.2. Editing a table3.3. Dropping a table3.4. Insert a document3.5. Get a document3.6. Delete a document3.7. Update a document3.8. Selecting documents3.9. Getting metadata4. Admin API4.1. Creating a user4.2. Deleting a user4.3. Regenerating tokens

Get a document

In CookieDB, getting a document can be done via a document key and a table. This will throw if the document doesn't exist, if the document isn't a part of the specified table, or if the table doesn't exist.

await cookieDB.get("table_name", "document_key");
← PreviousInsert a documentNext →Delete a document