Skip to content

Commit

Permalink
Fixed test
Browse files Browse the repository at this point in the history
  • Loading branch information
VianneyMI committed Apr 23, 2024
1 parent b1256f4 commit 91d4d8b
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions docs/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,7 @@ import os

from dotenv import load_dotenv
import pymongo
from monggregate import Pipeline, S, Expression
from monggregate import Pipeline, S

# Creating connexion string securely
load_dotenv(verbose=True)
Expand All @@ -142,8 +142,7 @@ client = pymongo.MongoClient(MONGODB_URI)
db = client["sample_mflix"]

# Using expressions
comments_count = Expression.field("comments").size()

comments_count = S.size(S.comments)

# Creating the pipeline
pipeline = Pipeline()
Expand Down

0 comments on commit 91d4d8b

Please sign in to comment.