DEV Community


Discussion on: a first look at svelteKit part 2 - layout, routes

zzoukk profile image
zZouKk • Edited

I am switching from sapper to sveltekit. Do you know how I can import faunadb in /lib and use it in server routes ? Waiting for part 3...

ajcwebdev profile image
anthony-campolo Author

Hey Souk 👋

I've played around a little bit with FaunaDB but only with Redwood's API and not with Sapper or Svelte. Redwood includes a preconfigured GraphQL Lambda Handler that can be deployed with Netlify Functions, so it was mostly happening under the covers of the framework and the provider.

I would guess there's a way to do it, but I don't know how well it is documented. There is a Migration guide, that may be able to help. If you don't see any information relevant to your problem you could open an issue asking for clarification in the guide or if you want to hop in the Discord you can chat with the team and they'll be happy to help you out.

Forem Open with the Forem app