vivreal-db

Provides MongoDB queries for multi-tenant isolation and collection linking in Vivreal's database.

Updated May 12, 2026
One-click install
npx skills add https://github.com/HillBombCreations/vivreal-skills --skill vivreal-db
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: vivreal-db
Source: https://github.com/HillBombCreations/vivreal-skills/tree/main/vivreal-knowledge/skills/vivreal-db
Command: npx skills add https://github.com/HillBombCreations/vivreal-skills --skill vivreal-db

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes scripts (resource) and references (resource) components.

What problem does it solve?

This Skill helps with querying and exploring Vivreal's MongoDB, providing safe multi-tenant query rules and linking collection methods, ensuring secure data handling.

Core Features & Use Cases

  • Multi-Tenant Query Rules: Utilizes safe multi-tenant query rules to avoid data breaches.
  • Collection Linking: Teaches how to link collections and understand the differences between dbKey and group.key.
  • Use Case: Use this Skill to understand how to scope a query to a tenant or link collections together to avoid common bugs like "content created in the portal but missing on the site".

Quick Start

Use the vivreal-db skill to query all active users in the 'general_shared' database.

Frequently Asked Questions about vivreal-db

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

FAQPage Schema
How do I scope MongoDB queries to securely isolate multi-tenant data?

To securely isolate multi-tenant data in MongoDB queries, you apply safe query rules that scope operations using tenant identifiers like groupID, dbKey, and group.key distinctions. This prevents cross-tenant data breaches.

What is the difference between dbKey and group.key when linking MongoDB collections?

The difference between dbKey and group.key lies in their linking scope: dbKey typically identifies the database connection, while group.key scopes data to a specific tenant. Understanding this distinction prevents common linking bugs across collections.

Why does content created in the portal go missing on the live site?

Content created in a portal but missing on a live site usually indicates improper multi-tenant data linking. This happens when MongoDB queries fail to correctly scope data using the proper dbKey or group.key, causing tenant data to disconnect.

How do I link MongoDB collections together to avoid tenant data bugs?

You link MongoDB collections by applying safe multi-tenant query rules that correctly map relationships using dbKey and group.key. Properly linking collections ensures data created in one context correctly appears in another without tenant mismatch errors.

Can I use this multi-tenant MongoDB querying approach for any database?

This multi-tenant querying approach is designed specifically for MongoDB environments, focusing on Vivreal's database structure. It utilizes safe query rules and collection linking methods applicable to any operation requiring MongoDB query optimization.

How do I query all active users in a shared MongoDB database?

To query all active users in a shared MongoDB database like 'general_shared', you apply multi-tenant query rules. These rules ensure your query safely targets the correct tenant scope while retrieving the requested user data.