Skip to content

feat(blog): mongodb blog#7793

Merged
mhartington merged 3 commits intomainfrom
mongo-blog
Apr 13, 2026
Merged

feat(blog): mongodb blog#7793
mhartington merged 3 commits intomainfrom
mongo-blog

Conversation

@mhartington
Copy link
Copy Markdown
Member

@mhartington mhartington commented Apr 10, 2026

Summary by CodeRabbit

  • Documentation
    • Published a new blog post "MongoDB Without Compromise" describing Prisma Next’s MongoDB-native workflow: contract-driven schema modeling (embedded collections, polymorphism via discriminators), type-safe query/result validation and how includes affect loaded fields, versioned server-side migrations for indexes and JSON schema validators, a typed aggregation pipeline with a raw-command escape hatch, tooling comparison, roadmap and repo/demo/community links.

@vercel
Copy link
Copy Markdown

vercel bot commented Apr 10, 2026

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
blog Ready Ready Preview, Comment Apr 13, 2026 4:06pm
docs Ready Ready Preview, Comment Apr 13, 2026 4:06pm
eclipse Ready Ready Preview, Comment Apr 13, 2026 4:06pm
site Ready Ready Preview, Comment Apr 13, 2026 4:06pm

Request Review

@coderabbitai
Copy link
Copy Markdown
Contributor

coderabbitai bot commented Apr 10, 2026

Caution

Review failed

Pull request was closed or merged during review

Walkthrough

A new MDX blog post was added at apps/blog/content/blog/mongodb-without-compromise/index.mdx describing Prisma Next’s MongoDB-native workflow: contract-first schema modeling, type-safe queries and aggregations, discriminated polymorphism, and versioned server-side migrations.

Changes

Cohort / File(s) Summary
Blog Content
apps/blog/content/blog/mongodb-without-compromise/index.mdx
Added full MDX article "MongoDB Without Compromise" with frontmatter and content covering contract-first schema modeling, type-safe query composition and .include() semantics, versioned migration plan/apply for indexes/JSON-schema/collection options, discriminated polymorphic collections and narrowing, typed aggregation pipeline builder and raw-aggregation escape hatch, comparison vs. other tooling, roadmap, and repo/demo/community links.

Estimated code review effort

🎯 2 (Simple) | ⏱️ ~10 minutes

🚥 Pre-merge checks | ✅ 2 | ❌ 1

❌ Failed checks (1 inconclusive)

Check name Status Explanation Resolution
Title check ❓ Inconclusive The title 'feat(blog): mongodb blog' is vague and generic, lacking specificity about what the MongoDB blog post actually covers or its main contribution. Consider a more descriptive title that captures the core topic, such as 'feat(blog): add MongoDB without compromise guide' or similar that reflects the actual content about Prisma's MongoDB workflow.
✅ Passed checks (2 passed)
Check name Status Explanation
Description Check ✅ Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check.

✏️ Tip: You can configure your own custom pre-merge checks in the settings.


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
Copy Markdown
Contributor

@coderabbitai coderabbitai bot left a comment

Choose a reason for hiding this comment

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

Actionable comments posted: 2

🤖 Prompt for all review comments with AI agents
Verify each finding against the current code and only fix it if needed.

Inline comments:
In `@apps/blog/content/blog/mongodb-without-compromise/index.mdx`:
- Line 260: Replace the insecure Discord URL in the markdown link "**Join the
conversation:** [Discord](http://pris.ly/discord)" with the HTTPS version by
changing "http://pris.ly/discord" to "https://pris.ly/discord" so the link
points to a secure endpoint.
- Around line 24-27: The three consecutive bullets in the intro list all start
with the same word "You", making the flow repetitive; edit the bullets in
apps/blog/content/blog/mongodb-without-compromise/index.mdx (the list entries
that begin "You define...", "You set up...", "You write...") and rephrase one or
two to vary their openings (for example, use passive phrasing like "Types are
defined in TypeScript...", an action noun like "Setting up Mongoose..." or a
question/contrast like "But queries may not fully connect...") so the list reads
more natural while preserving the original meaning.
🪄 Autofix (Beta)

Fix all unresolved CodeRabbit comments on this PR:

  • Push a commit to this branch (recommended)
  • Create a new PR with the fixes

ℹ️ Review info
⚙️ Run configuration

Configuration used: Path: .coderabbit.yaml

Review profile: CHILL

Plan: Pro

Run ID: a6ddc8e0-ea19-463d-8715-8310e88aa591

📥 Commits

Reviewing files that changed from the base of the PR and between 35ae709 and 6825651.

⛔ Files ignored due to path filters (2)
  • apps/blog/public/mongodb-without-compromise/imgs/hero.svg is excluded by !**/*.svg
  • apps/blog/public/mongodb-without-compromise/imgs/meta.png is excluded by !**/*.png
📒 Files selected for processing (1)
  • apps/blog/content/blog/mongodb-without-compromise/index.mdx

Comment thread apps/blog/content/blog/mongodb-without-compromise/index.mdx
Comment thread apps/blog/content/blog/mongodb-without-compromise/index.mdx
@argos-ci
Copy link
Copy Markdown

argos-ci bot commented Apr 10, 2026

The latest updates on your projects. Learn more about Argos notifications ↗︎

Build Status Details Updated (UTC)
default (Inspect) ✅ No changes detected - Apr 13, 2026, 4:15 PM

Copy link
Copy Markdown
Contributor

@coderabbitai coderabbitai bot left a comment

Choose a reason for hiding this comment

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

♻️ Duplicate comments (2)
apps/blog/content/blog/mongodb-without-compromise/index.mdx (2)

259-259: ⚠️ Potential issue | 🟡 Minor

Use HTTPS for the Discord link.

Line 259 uses an insecure http:// URL in user-facing content; switch it to https://.

🔒 Suggested fix
-- - **Join the conversation:** [Discord](http://pris.ly/discord)
+- **Join the conversation:** [Discord](https://pris.ly/discord)
🤖 Prompt for AI Agents
Verify each finding against the current code and only fix it if needed.

In `@apps/blog/content/blog/mongodb-without-compromise/index.mdx` at line 259,
Update the insecure link in the markdown: replace the link target in the
"[Discord](http://pris.ly/discord)" anchor so it uses HTTPS (i.e., change
"http://pris.ly/discord" to "https://pris.ly/discord") ensuring the visible text
"Discord" remains unchanged.

23-26: ⚠️ Potential issue | 🟡 Minor

Vary intro bullet openings for better flow.

At Line 23 through Line 26, all bullets start with “You,” which reads repetitive. Rephrasing one or two lines will improve cadence without changing meaning.

✍️ Suggested wording
-- You define your application types in TypeScript so the compiler understands your data.
-- You set up Mongoose or the native driver and define those shapes again in a different format.
-- You write a query and the types don't fully connect, so you cast, add guards, or accept a little `any`.
-- You need an index, so you drop into the MongoDB shell or a deployment script and hope your database stays in sync with your code.
+- Application types are defined in TypeScript so the compiler understands your data.
+- Then you set up Mongoose or the native driver and define those shapes again in a different format.
+- Query types still don't fully connect, so you cast, add guards, or accept a little `any`.
+- When an index is needed, you drop into the MongoDB shell or a deployment script and hope your database stays in sync with your code.
🤖 Prompt for AI Agents
Verify each finding against the current code and only fix it if needed.

In `@apps/blog/content/blog/mongodb-without-compromise/index.mdx` around lines 23
- 26, The four consecutive bullets starting with "You" (lines beginning "You
define your application types...", "You set up Mongoose...", "You write a
query...", "You need an index...") are repetitive; reword one or two to vary
openings and improve flow without changing meaning — e.g., change "You define
your application types..." to "Define your application types in TypeScript...",
or "You set up Mongoose..." to "Set up Mongoose or the native driver..." and
similarly alter one of the other bullets ("Write a query..." → "Writing a
query..." or "Need an index..." → "When you need an index...") so not all
bullets start with "You".
🤖 Prompt for all review comments with AI agents
Verify each finding against the current code and only fix it if needed.

Duplicate comments:
In `@apps/blog/content/blog/mongodb-without-compromise/index.mdx`:
- Line 259: Update the insecure link in the markdown: replace the link target in
the "[Discord](http://pris.ly/discord)" anchor so it uses HTTPS (i.e., change
"http://pris.ly/discord" to "https://pris.ly/discord") ensuring the visible text
"Discord" remains unchanged.
- Around line 23-26: The four consecutive bullets starting with "You" (lines
beginning "You define your application types...", "You set up Mongoose...", "You
write a query...", "You need an index...") are repetitive; reword one or two to
vary openings and improve flow without changing meaning — e.g., change "You
define your application types..." to "Define your application types in
TypeScript...", or "You set up Mongoose..." to "Set up Mongoose or the native
driver..." and similarly alter one of the other bullets ("Write a query..." →
"Writing a query..." or "Need an index..." → "When you need an index...") so not
all bullets start with "You".

ℹ️ Review info
⚙️ Run configuration

Configuration used: Path: .coderabbit.yaml

Review profile: CHILL

Plan: Pro

Run ID: 44dc445d-bbb6-4d26-8580-0f4bcd47ae34

📥 Commits

Reviewing files that changed from the base of the PR and between 6825651 and 3fe1a3e.

📒 Files selected for processing (1)
  • apps/blog/content/blog/mongodb-without-compromise/index.mdx

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.

1 participant