Skip to content

Getting Started Documentation with MongoDB on Prisma should talk about Replica Set requirement (Epic 3) #2795

@matthewmueller

Description

@matthewmueller

Currently our getting started guide assumes you know how to get a MongoDB connection URL from somewhere:

  • Update: we'll do the above in the Prisma Data Guide because getting a connection URL is not only relevant to Prisma Users.

https://www.prisma.io/docs/getting-started/setup-prisma/start-from-scratch/mongodb/connect-your-database-typescript-mongodb

This assumes that the MongoDB url is configured as a replica set. The default local MongoDB does not work like this and you'll end up with an error like this:

Transactions are not supported by this deployment

There's a bunch of good suggestions in this issue on how to configure your local MongoDB to support the replicaset.

Extra: consider also updating Getting Started Guide example schema to use embedded types.

Metadata

Metadata

Assignees

No one assigned

    Labels

    type/docsDocumentation creation, updates or corrections

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions