Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion mcp_server/query_tool.py
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,7 @@ def generate_json_schema(model, fields=None, exclude=None):

1. $lookup: Joins another collection :.
- "from" must refer to a model name listed in ref in the schema (if defined).
- "localField" must be a field path on the base colletion or a previous $lookup alias.
- "localField" must be a field path on the base collection or a previous $lookup alias.
- "foreignField" must be "_id"
- "as" defines an alias used in subsequent $match and $lookup stages as a prefix (e.g., alias.field).
2. $match: Filter documents using comparison and logical operators.
Expand Down