> For the complete documentation index, see [llms.txt](https://adamite.gitbook.io/docs/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://adamite.gitbook.io/docs/sdk/database/create-new-documents.md).

# Create a new document

First, reference the collection you'd like to insert a document into.

```javascript
const projects = adamite().database().collection("projects");
```

Now, you can call `create` on the collection reference to insert a new document. The document (including it's automatically generated `id`) will be returned to you.

```javascript
const newProject = await projects.create({
  name: "Test"
});
```
