Skip to content

Conversation

@DevRGD
Copy link

@DevRGD DevRGD commented Nov 20, 2025

The datasource property url is no longer supported in schema files. Move connection URLs for Migrate to prisma.config.ts and pass either adapter for a direct database connection or accelerateUrl for Accelerate to the PrismaClient constructor. See https://pris.ly/d/config-datasource and https://pris.ly/d/prisma7-client-config

Summary by CodeRabbit

  • Documentation
    • Updated Prisma schema example to reflect simplified MongoDB datasource configuration.

✏️ Tip: You can customize this high-level summary in your review settings.

The datasource property `url` is no longer supported in schema files. Move connection URLs for Migrate to `prisma.config.ts` and pass either `adapter` for a direct database connection or `accelerateUrl` for Accelerate to the `PrismaClient` constructor. See https://pris.ly/d/config-datasource and https://pris.ly/d/prisma7-client-config
@coderabbitai
Copy link
Contributor

coderabbitai bot commented Nov 20, 2025

Walkthrough

This PR removes a single line from a Prisma schema documentation example—specifically the url = env("DATABASE_URL") configuration from a MongoDB datasource block, leaving only the provider definition.

Changes

Cohort / File(s) Summary
Documentation schema example update
content/200-orm/100-prisma-schema/20-data-model/10-models.mdx
Removed url = env("DATABASE_URL") line from MongoDB datasource block in example snippet

Estimated code review effort

🎯 1 (Trivial) | ⏱️ ~2 minutes

This is a minimal, single-line deletion in documentation. The change is straightforward and localized to one code snippet without structural modifications or logic implications.

Possibly related PRs

Pre-merge checks

✅ Passed checks (3 passed)
Check name Status Explanation
Description Check ✅ Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check ✅ Passed The title accurately and concisely describes the main change: removing the DATABASE_URL from the MongoDB datasource configuration in a Prisma schema example.
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check.

📜 Recent review details

Configuration used: Path: .coderabbit.yaml

Review profile: CHILL

Plan: Pro

📥 Commits

Reviewing files that changed from the base of the PR and between 51d0df1 and b36221c.

📒 Files selected for processing (1)
  • content/200-orm/100-prisma-schema/20-data-model/10-models.mdx (0 hunks)
💤 Files with no reviewable changes (1)
  • content/200-orm/100-prisma-schema/20-data-model/10-models.mdx

Tip

📝 Customizable high-level summaries are now available in beta!

You can now customize how CodeRabbit generates the high-level summary in your pull requests — including its content, structure, tone, and formatting.

  • Provide your own instructions using the high_level_summary_instructions setting.
  • Format the summary however you like (bullet lists, tables, multi-section layouts, contributor stats, etc.).
  • Use high_level_summary_in_walkthrough to move the summary from the description to the walkthrough section.

Example instruction:

"Divide the high-level summary into five sections:

  1. 📝 Description — Summarize the main change in 50–60 words, explaining what was done.
  2. 📓 References — List relevant issues, discussions, documentation, or related PRs.
  3. 📦 Dependencies & Requirements — Mention any new/updated dependencies, environment variable changes, or configuration updates.
  4. 📊 Contributor Summary — Include a Markdown table showing contributions:
    | Contributor | Lines Added | Lines Removed | Files Changed |
  5. ✔️ Additional Notes — Add any extra reviewer context.
    Keep each section concise (under 200 words) and use bullet or numbered lists for clarity."

Note: This feature is currently in beta for Pro-tier users, and pricing will be announced later.


Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

Copy link
Author

@DevRGD DevRGD left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Remove DATABASE_URL from MongoDB datasource

@aidankmcalister
Copy link
Member

Thank you for your PR! Unfortunately Mongo is not compatible with Prisma 7 as of right now, so we are going to keep it as is. We will be adding a compatibility note.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants