Best way to query data in NextJS App Dir.

Hi, since the new nextjs server actions are meant for mutating data, what would be a "proper" way of querying data in the app dir.
3 Replies
Neto
Neto13mo ago
the nicest way would be to use something like drizzle/prisma/kysely/some sdk from a data source you can still use fetch or gql to query something
Forsto
Forsto13mo ago
i can just write prisma queries in the nextjs components right?
Neto
Neto13mo ago
you can as long you dont run on the edge