Skip to content

Commit

Permalink
Update query.md
Browse files Browse the repository at this point in the history
  • Loading branch information
AnthonyTsu1984 authored Aug 30, 2023
1 parent b9caa0e commit 06c0f60
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions site/en/userGuide/search/query.md
Original file line number Diff line number Diff line change
Expand Up @@ -436,7 +436,7 @@ Count all entities in a collection:
```python
res = collection.query(
expr="",
output_fields = [count(*)],
output_fields = ["count(*)"],
)
print(res)
Expand All @@ -453,7 +453,7 @@ Count entities that meet specific filter conditions:
res = collection.query(
# filter entities whose ID is in the specified list
expr="book_id in [2,4,6,8]",
output_fields = [count(*)],
output_fields = ["count(*)"],
)
print(res)
Expand Down

0 comments on commit 06c0f60

Please sign in to comment.