Skip to content
Merged
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
7 changes: 7 additions & 0 deletions content/develop/clients/go/queryjson.md
Original file line number Diff line number Diff line change
Expand Up @@ -102,6 +102,13 @@ Specify query options to return only the `city` field:
{{< clients-example go_home_json query2 >}}
{{< /clients-example >}}

You can also use the same query with the `CountOnly` option
enabled to get the number of documents found without
returning the documents themselves.

{{< clients-example go_home_json query2count_only >}}
{{< /clients-example >}}

Use an
[aggregation query]({{< relref "/develop/interact/search-and-query/query/aggregation" >}})
to count all users in each city.
Expand Down