Skip to content

Commit

Permalink
fix(mongo): correctly type the aggreation pipeline case (#1820)
Browse files Browse the repository at this point in the history
  • Loading branch information
davinov authored Nov 14, 2024
1 parent c68f1b0 commit 47f2709
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion toucan_connectors/mongo/mongo_connector.py
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,7 @@ def validate_collection(client, database: str, collection: str):
class MongoDataSource(ToucanDataSource):
database: str = Field(..., description="The name of the database you want to query")
collection: str = Field(..., description="The name of the collection you want to query")
query: Union[dict, list] = Field(
query: Union[dict, list[dict]] = Field(
{},
description="A mongo query. See more details on the Mongo " "Aggregation Pipeline in the MongoDB documentation",
)
Expand Down

0 comments on commit 47f2709

Please sign in to comment.