# MongoDB

With the Prisma ORM you can use MongoDB as your main database.

However, there are small differences in the way the schema needs to be defined.

## MongoDB Prisma Schema

Shipped provides you with a `prisma.schema` file suitable for MongoDB.

Simply replace the `prisma.schema` with `prisma.mongodb.schema`

{% code title="terminal" %}

```bash
cd prisma
mv schema.prisma schema.sql.prisma
cp schema.mongodb.prisma schema.prisma
```

{% endcode %}

{% hint style="info" %}
To learn more about the Prisma usage with MongoDB check the [official documentation](https://www.prisma.io/docs/orm/overview/databases/mongodb#differences-to-consider).
{% endhint %}


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.shipped.club/features/database/mongodb.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
