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
Neto2y 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
ForstoOP2y ago
i can just write prisma queries in the nextjs components right?
Neto
Neto2y ago
you can as long you dont run on the edge
Want results from more Discord servers?
Add your server