> For the complete documentation index, see [llms.txt](https://simpldb.js.org/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://simpldb.js.org/documentation/collection/create.md).

# .create()

Creates and pushes a new entry into the collection.

### create(data)

| **Parameter** | **Description**                                                                                        |
| ------------- | ------------------------------------------------------------------------------------------------------ |
| data          | <p><a href="https://simpldb.gitbook.io/docs/types-and-interfaces/data">Data</a></p><p>Entry's data</p> |

| **Returns**                                                       | **Description**         |
| ----------------------------------------------------------------- | ----------------------- |
| [Data](https://simpldb.gitbook.io/docs/types-and-interfaces/data) | The newly created entry |

```javascript
// Note: People is a collection.
// This collection was created with a default value of 900 for the 'salary' key.

People.create({ id: 1, name: 'Peter', salary: 1200 }); // { id: 1, name: 'Peter', salary: 1200 }
People.create({ id: 2, name: 'Michael' }); // { id: 2, name: 'Michael', salary: 900 }

People.getAll();  // [{ id: 1, name: 'Peter', salary: 1200 }, { id: 2, name: 'Michael', salary: 900 }] 
```
