We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 71a2ec2 + 00945bd commit 1db3333Copy full SHA for 1db3333
content/develop/clients/go/queryjson.md
@@ -102,6 +102,13 @@ Specify query options to return only the `city` field:
102
{{< clients-example go_home_json query2 >}}
103
{{< /clients-example >}}
104
105
+You can also use the same query with the `CountOnly` option
106
+enabled to get the number of documents found without
107
+returning the documents themselves.
108
+
109
+{{< clients-example go_home_json query2count_only >}}
110
+{{< /clients-example >}}
111
112
Use an
113
[aggregation query]({{< relref "/develop/interact/search-and-query/query/aggregation" >}})
114
to count all users in each city.
0 commit comments