Is it possible to use prisma with Nuxt 3 and /server/api folder for useAsyncData/useFetch methods (for send form data) without Express?
I don't find find how to sent (PUT/POST) my form data with useAsyncData/useFetch. And Nuxt 3 come with the /server/api dir, why use Express?
This was almost a year ago so I'm pretty sure you worked it out between then and now.
And then you'd just call const { data } = await useFetch('/api/user/1'); in app.vue or which ever Vue component you'd like.
const { data } = await useFetch('/api/user/1');
Hi Axel 👋🏽
At the time the guide was written, the sample application was using Nuxt 2 (I'll add a note about this). You can exclude Express in your project. You can still use Prisma with in server routes.
how can we fetch data from database without using Express ? can we have samples using nuxt 2 . thank you
Are you sure you want to hide this comment? It will become hidden in your post, but will still be visible via the comment's permalink.
Hide child comments as well
Confirm
For further actions, you may consider blocking this person and/or reporting abuse
We're a place where coders share, stay up-to-date and grow their careers.
Is it possible to use prisma with Nuxt 3 and /server/api folder for useAsyncData/useFetch methods (for send form data) without Express?
I don't find find how to sent (PUT/POST) my form data with useAsyncData/useFetch.
And Nuxt 3 come with the /server/api dir, why use Express?
This was almost a year ago so I'm pretty sure you worked it out between then and now.
And then you'd just call
const { data } = await useFetch('/api/user/1');
in app.vue or which ever Vue component you'd like.Hi Axel 👋🏽
At the time the guide was written, the sample application was using Nuxt 2 (I'll add a note about this). You can exclude Express in your project. You can still use Prisma with in server routes.
how can we fetch data from database without using Express ? can we have samples using nuxt 2 . thank you