Skip to content
This repository was archived by the owner on Jun 10, 2024. It is now read-only.

Commit ea3ed30

Browse files
committed
Update reading-data-GO-go05.mdx
1 parent ec4dfbd commit ea3ed30

File tree

1 file changed

+1
-29
lines changed

1 file changed

+1
-29
lines changed

docs/1.31/prisma-client/basic-data-access/reading-data-GO-go05.mdx

+1-29
Original file line numberDiff line numberDiff line change
@@ -743,32 +743,4 @@ posts, err := client.Posts(&prisma.PostsParams{
743743

744744
## Aggregations
745745

746-
You can submit aggregation queries via _connection queries_. The following aggregation functions are supported:
747-
748-
- `count`: Counts the number of records in a list
749-
- `avg` (_coming soon_): Computes the average of a list of numbers.
750-
- `median` (_coming soon_): Computes the median of a list of numbers.
751-
- `max` (_coming soon_): Returns the greatest element of a list of numbers.
752-
- `min` (_coming soon_): Returns the smallest element of a list of numbers.
753-
- `sum` (_coming soon_): Computes the sum of a list of numbers.
754-
755-
> See [this](https://github.com/prisma/prisma/issues/1312) GitHub issue to learn more about the upcoming aggregation functions.
756-
757-
### Examples
758-
759-
_Count the number of post records_:
760-
761-
<Code languages={["Go", "Result"]}>
762-
763-
```ts
764-
const postCount: number = await prisma
765-
.postsConnection()
766-
.aggregate()
767-
.count()
768-
```
769-
770-
```js
771-
9
772-
```
773-
774-
</Code>
746+
Aggregrations are currently not supported in the Prisma Go client. You can track the progress of this feature in [this](https://github.com/prisma/prisma/issues/4027) GitHub issue.

0 commit comments

Comments
 (0)