FaunaDB Nuxt asyncData()

Is there any way to use fauna on SSR using NuxtJS? Need to use asyncData(), not able to figure out how to use fql in the same.

Thanks

I’m not a Nuxt user but I suspect it’s similar to data fetching with Next.js. You should be able to use the FaunaDB JavaScript driver in asyncData.

I figured it out. Tried the fetch() method for SSR in Nuxt, its working. Probably will work with asyncData() too.