abp-mongodb

Provides ABP MongoDB integration patterns for DbContext, IMongoCollection, and repositories.

1|Updated Mar 20, 2026
One-click install
npx skills add https://github.com/afonsoft/VideoChat --skill abp-mongodb-afonsoft
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: abp-mongodb
Source: https://github.com/afonsoft/VideoChat/tree/main/.agents/skills/abp-mongodb
Command: npx skills add https://github.com/afonsoft/VideoChat --skill abp-mongodb-afonsoft

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

ABP MongoDB integration often lacks standard patterns for DbContext, repository, and model configuration. This Skill provides a concise guide with patterns for AbpMongoDbContext, IMongoCollection, and MongoDbRepository usage to streamline development and reduce boilerplate.

Core Features & Use Cases

  • MongoDbContext setup and entity configuration
  • Repository implementation with common CRUD operations
  • Module configuration and direct collection access patterns

Quick Start

Create a new MyProjectMongoDbContext subclass, configure entities, and register the context in your ABP module to enable MongoDB repositories.

Frequently Asked Questions about abp-mongodb

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I set up a MongoDB DbContext in an ABP framework project?

To set up a MongoDB DbContext in an ABP project, create a subclass of AbpMongoDbContext, configure your entity properties as IMongoCollection, and register the context within your ABP module to enable standard repository patterns.

What is the best way to access IMongoCollection directly in ABP MongoDB?

Direct IMongoCollection access in ABP MongoDB is achieved through your AbpMongoDbContext implementation, allowing you to bypass standard repositories when you need custom MongoDB queries or specific collection-level operations.

Do I need database migrations when using MongoDB with the ABP framework?

No, you do not need database migrations when using MongoDB with the ABP framework. The schema-less nature of MongoDB allows you to focus on entity configuration and repository implementation without running migration scripts.

How do I handle embedded versus referenced documents in ABP MongoDB repositories?

Handling embedded versus referenced documents in ABP MongoDB repositories requires defining proper entity relationships in your DbContext configuration, ensuring data is structured correctly for standard CRUD operations and UpdateAsync calls.

Can I use standard ABP repository patterns with MongoDB?

Yes, you can use standard ABP repository patterns with MongoDB by implementing MongoDbRepository. This provides common CRUD operations and integrates seamlessly with your ABP module configuration for NoSQL data access.

How do I configure ABP module registration for MongoDB data access?

Configuring ABP module registration for MongoDB data access involves linking your custom AbpMongoDbContext subclass in the module's ConfigureServices method, enabling repository patterns and direct IMongoCollection access.