Skip to content

Commit 8c8c1f8

Browse files
committed
docs: old api slip
1 parent f081bbf commit 8c8c1f8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

readme.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -108,7 +108,7 @@ const usersRows = await db.select({
108108
}).from(users)
109109
.leftJoin(posts.id, eq(posts.author_id, users.id))
110110

111-
const usersWithPosts = aggregateRows({rows, pkey: 'id', fields: { posts: 'post.id' }});
111+
const usersWithPosts = aggregate({ rows, pkey: 'id', fields: { posts: 'post.id' }});
112112
```
113113

114114
## Contributing

0 commit comments

Comments
 (0)